|
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2">
<class name="Entities.Products, Entities" table="dbo.Products">
<id name="ProductID" column="ProductID" type="System.Int32">
<generator class="native" />
</id>
<property name="CategoryID" column="CategoryID" type="System.Int32" not-null="true"/>
<property name="Discontinued" column="Discontinued" type="System.Boolean" not-null="false"/>
<property name="ProductName" column="ProductName" type="System.String" not-null="false"/>
<property name="QuantityPerUnit" column="QuantityPerUnit" type="System.String" not-null="true"/>
<property name="ReorderLevel" column="ReorderLevel" type="System.Int16" not-null="true"/>
<property name="SupplierID" column="SupplierID" type="System.Int32" not-null="true"/>
<property name="UnitPrice" column="UnitPrice" type="System.Decimal" not-null="true"/>
<property name="UnitsInStock" column="UnitsInStock" type="System.Int16" not-null="true"/>
<property name="UnitsOnOrder" column="UnitsOnOrder" type="System.Int16" not-null="true"/>
<many-to-one name="Categories" not-null="true">
<column name="CategoryID"/>
</many-to-one>
</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.