<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Deleting a one-to-many relationship in NHibernate</title>
	<atom:link href="http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/feed/" rel="self" type="application/rss+xml" />
	<link>http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/</link>
	<description>Do it to get it</description>
	<lastBuildDate>Sat, 04 Sep 2010 01:08:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: s</title>
		<link>http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/comment-page-1/#comment-204</link>
		<dc:creator>s</dc:creator>
		<pubDate>Sat, 12 Sep 2009 09:45:08 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=80#comment-204</guid>
		<description>&lt;!--</description>
		<content:encoded><![CDATA[<p>&lt;!&#8211;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur</title>
		<link>http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/comment-page-1/#comment-203</link>
		<dc:creator>Artur</dc:creator>
		<pubDate>Sat, 12 Sep 2009 09:41:16 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=80#comment-203</guid>
		<description>i Have mapping like this, and it&#039;s doesn&#039;t work...:/
I don&#039;t know why.

app.config
===============



  
    
  

  
    

      
        NHibernate.Dialect.MsSql2005Dialect
      

      
        NHibernate.Connection.DriverConnectionProvider
      

      
        NHibernate.Driver.SqlClientDriver
      

      
        1
      
      
      
        Server=art-PC;
        Database=T1;
        User ID = sa;
        Password=password;
      
      


      
        NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle
      

      
        True
      

    
  

===============

in Parent
 
      
      
    

In child
    </description>
		<content:encoded><![CDATA[<p>i Have mapping like this, and it&#8217;s doesn&#8217;t work&#8230;:/<br />
I don&#8217;t know why.</p>
<p>app.config<br />
===============</p>
<p>        NHibernate.Dialect.MsSql2005Dialect</p>
<p>        NHibernate.Connection.DriverConnectionProvider</p>
<p>        NHibernate.Driver.SqlClientDriver</p>
<p>        1</p>
<p>        Server=art-PC;<br />
        Database=T1;<br />
        User ID = sa;<br />
        Password=password;</p>
<p>        NHibernate.ByteCode.Castle.ProxyFactoryFactory, NHibernate.ByteCode.Castle</p>
<p>        True</p>
<p>===============</p>
<p>in Parent</p>
<p>In child</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artur</title>
		<link>http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/comment-page-1/#comment-202</link>
		<dc:creator>Artur</dc:creator>
		<pubDate>Sat, 12 Sep 2009 09:40:14 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=80#comment-202</guid>
		<description>i Have mapping like this, and it&#039;s doesn&#039;t work...:/
I don&#039;t know why.

in Parent
 
      
      
    

In child
    </description>
		<content:encoded><![CDATA[<p>i Have mapping like this, and it&#8217;s doesn&#8217;t work&#8230;:/<br />
I don&#8217;t know why.</p>
<p>in Parent</p>
<p>In child</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yazid</title>
		<link>http://gregdoesit.com/2009/01/deleting-a-one-to-many-relationship-in-nhibernate/comment-page-1/#comment-73</link>
		<dc:creator>Yazid</dc:creator>
		<pubDate>Thu, 23 Apr 2009 11:14:56 +0000</pubDate>
		<guid isPermaLink="false">http://gregdoesit.com/?p=80#comment-73</guid>
		<description>Hello,

I would like to take to this opportunity to ask a question about one-to-many. I ahve two classes:

GeneralInformation and famousPlacesInLondon

public class GeneralInformation
{

        private int id;

        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }

        private IList famousPlacesOutLondon;

        public virtual IList FamousPlacesOutLondon
        {
            get { return famousPlacesOutLondon; }
            set { famousPlacesOutLondon = value; }
        }
}

public class FamousPlacesInLondon
{
        private int id;

        public virtual int Id
        {
            get { return id; }
            set { id = value; }
        }
        private string link;

        public virtual string Link
        {
            get { return link; }
            set { link = value; }
        }
        private string title;

        public virtual string Title
        {
            get { return title; }
            set { title = value; }
        }

    }
}

My mapping are as follows:



  
    
      
        
    
      
      
        
  




  
    
      
    
    
        
  


If I fill the GeneralInformation with data and do a save using NHibernate, everything gets inserted into the appropriate table, except the ForeignKey GeneralInformationId. What is wrong?

TIA
Yaz</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>I would like to take to this opportunity to ask a question about one-to-many. I ahve two classes:</p>
<p>GeneralInformation and famousPlacesInLondon</p>
<p>public class GeneralInformation<br />
{</p>
<p>        private int id;</p>
<p>        public virtual int Id<br />
        {<br />
            get { return id; }<br />
            set { id = value; }<br />
        }</p>
<p>        private IList famousPlacesOutLondon;</p>
<p>        public virtual IList FamousPlacesOutLondon<br />
        {<br />
            get { return famousPlacesOutLondon; }<br />
            set { famousPlacesOutLondon = value; }<br />
        }<br />
}</p>
<p>public class FamousPlacesInLondon<br />
{<br />
        private int id;</p>
<p>        public virtual int Id<br />
        {<br />
            get { return id; }<br />
            set { id = value; }<br />
        }<br />
        private string link;</p>
<p>        public virtual string Link<br />
        {<br />
            get { return link; }<br />
            set { link = value; }<br />
        }<br />
        private string title;</p>
<p>        public virtual string Title<br />
        {<br />
            get { return title; }<br />
            set { title = value; }<br />
        }</p>
<p>    }<br />
}</p>
<p>My mapping are as follows:</p>
<p>If I fill the GeneralInformation with data and do a save using NHibernate, everything gets inserted into the appropriate table, except the ForeignKey GeneralInformationId. What is wrong?</p>
<p>TIA<br />
Yaz</p>
]]></content:encoded>
	</item>
</channel>
</rss>
