test/SampleService/App_Code/Model.edmx in ruby_odata-0.0.7 vs test/SampleService/App_Code/Model.edmx in ruby_odata-0.0.8
- old
+ new
@@ -30,10 +30,11 @@
<Property Name="Price" Type="money" Nullable="false" />
<Property Name="Category_Id" Type="int" Nullable="false" />
<Property Name="CreateDate" Type="datetime" Nullable="false" />
<Property Name="ModifiedDate" Type="datetime" Nullable="false" />
<Property Name="CreatedBy" Type="nvarchar" MaxLength="50" />
+ <Property Name="DiscontinuedDate" Type="datetime" />
</EntityType>
<Association Name="FK_CategoryProduct">
<End Role="Categories" Type="Model.Store.Categories" Multiplicity="1" />
<End Role="Products" Type="Model.Store.Products" Multiplicity="*" />
<ReferentialConstraint>
@@ -65,10 +66,11 @@
<Property Type="String" Name="Name" Nullable="false" />
<Property Type="String" Name="Description" Nullable="false" />
<Property Type="Decimal" Name="Price" Nullable="false" />
<NavigationProperty Name="Category" Relationship="Model.CategoryProduct" FromRole="Product" ToRole="Category" />
<Property Name="AuditFields" Type="Model.AuditFields" Nullable="false" />
+ <Property Type="DateTime" Name="DiscontinuedDate" Nullable="true" />
</EntityType>
<EntityType Name="Category">
<Key>
<PropertyRef Name="Id" />
</Key>
@@ -92,9 +94,10 @@
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2008/09/mapping/cs">
<EntityContainerMapping StorageEntityContainer="ModelStoreContainer" CdmEntityContainer="ModelContainer">
<EntitySetMapping Name="Products">
<EntityTypeMapping TypeName="IsTypeOf(Model.Product)">
<MappingFragment StoreEntitySet="Products">
+ <ScalarProperty Name="DiscontinuedDate" ColumnName="DiscontinuedDate" />
<ScalarProperty Name="Id" ColumnName="Id" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="Description" ColumnName="Description" />
<ScalarProperty Name="Price" ColumnName="Price" />
<ComplexProperty Name="AuditFields">