|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Entities.Categories, Entities" table="dbo.Categories">
<id name="CategoryID" column="CategoryID" type="System.Int32">
<generator class="native" />
</id>
<property name="CategoryName" column="CategoryName" type="System.String" not-null="false"/>
<property name="Description" column="Description" type="System.String" not-null="true"/>
<property name="Picture" column="Picture" type="System.Byte[]" not-null="true"/>
<bag name="Productss" inverse="true" lazy="true" cascade="all-delete-orphan">
<key>
<column name="CategoryID"/>
</key>
<one-to-many class="Entities.Products, Entities"/>
</bag>
</class>
</hibernate-mapping>
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Program Manager in Sculpture project, Interesting in .NET Model driven development.