Hey Guys...
Look That:
I've a Blog (class) and a Post (class).
Post Class:
public int ID { get; set; }
public string Title { get; set; }
public string Category { get; set; }
public string Text { get; set; }
public DateTime Creation { get; set; }
public Blog Blog { get; set; }
Post hbm xml:
<class name="Post" table="EDJPost" >
<id name="ID" column="PostID">
<generator class="native"/>
</id>
<many-to-one name="Blog" class="TranceNET.DomainModel.Blog.Entities.Blog, TranceNET.DomainModel" column="BlogID" cascade="all" />
<property name="Title" not-null="false"/>
<property name="Text"/>
<property name="Category" not-null="false"/>
<property name="Creation"/>
</class>
---------------------------------
Blog Class:
public int ID { get; set; }
public string About { get; set; }
public List<Post> posts { get; set; }
Blog hbm xml:
<class name="Blog" table="EDJBlog" >
<id name="ID" column="BlogID">
<generator class="native"/>
</id>
<property name="About" not-null="false"/>
</class>
Ok, when i try to save one post, no problems appear... it's all right...
BUT
when i try to delete some post, none exception appear but the post dont be deleted.
Look at the image to clarify some why i try to say...
In the image, my object (Post) have one property (Blog) and that property was null... is that the problem?
[/img]