123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- <?xml version="1.0" encoding="utf-8"?>
- <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
- <EntityContainerMapping StorageEntityContainer="Хранилище school18ModelContainer" CdmEntityContainer="BaseSchool">
- <EntitySetMapping Name="Client">
- <EntityTypeMapping TypeName="school18Model.Client">
- <MappingFragment StoreEntitySet="Client">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="FirstName" ColumnName="FirstName" />
- <ScalarProperty Name="LastName" ColumnName="LastName" />
- <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
- <ScalarProperty Name="Birthday" ColumnName="Birthday" />
- <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
- <ScalarProperty Name="Email" ColumnName="Email" />
- <ScalarProperty Name="Phone" ColumnName="Phone" />
- <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ClientService">
- <EntityTypeMapping TypeName="school18Model.ClientService">
- <MappingFragment StoreEntitySet="ClientService">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ClientID" ColumnName="ClientID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="StartTime" ColumnName="StartTime" />
- <ScalarProperty Name="Comment" ColumnName="Comment" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="DocumentByService">
- <EntityTypeMapping TypeName="school18Model.DocumentByService">
- <MappingFragment StoreEntitySet="DocumentByService">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
- <ScalarProperty Name="DocumentPath" ColumnName="DocumentPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Gender">
- <EntityTypeMapping TypeName="school18Model.Gender">
- <MappingFragment StoreEntitySet="Gender">
- <ScalarProperty Name="Code" ColumnName="Code" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Manufacturer">
- <EntityTypeMapping TypeName="school18Model.Manufacturer">
- <MappingFragment StoreEntitySet="Manufacturer">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Name" ColumnName="Name" />
- <ScalarProperty Name="StartDate" ColumnName="StartDate" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Product">
- <EntityTypeMapping TypeName="school18Model.Product">
- <MappingFragment StoreEntitySet="Product">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- <ScalarProperty Name="IsActive" ColumnName="IsActive" />
- <ScalarProperty Name="ManufacturerID" ColumnName="ManufacturerID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductPhoto">
- <EntityTypeMapping TypeName="school18Model.ProductPhoto">
- <MappingFragment StoreEntitySet="ProductPhoto">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ProductSale">
- <EntityTypeMapping TypeName="school18Model.ProductSale">
- <MappingFragment StoreEntitySet="ProductSale">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="SaleDate" ColumnName="SaleDate" />
- <ScalarProperty Name="ProductID" ColumnName="ProductID" />
- <ScalarProperty Name="Quantity" ColumnName="Quantity" />
- <ScalarProperty Name="ClientServiceID" ColumnName="ClientServiceID" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Service">
- <EntityTypeMapping TypeName="school18Model.Service">
- <MappingFragment StoreEntitySet="Service">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Cost" ColumnName="Cost" />
- <ScalarProperty Name="DurationInSeconds" ColumnName="DurationInSeconds" />
- <ScalarProperty Name="Description" ColumnName="Description" />
- <ScalarProperty Name="Discount" ColumnName="Discount" />
- <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="ServicePhoto">
- <EntityTypeMapping TypeName="school18Model.ServicePhoto">
- <MappingFragment StoreEntitySet="ServicePhoto">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
- <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <EntitySetMapping Name="Tag">
- <EntityTypeMapping TypeName="school18Model.Tag">
- <MappingFragment StoreEntitySet="Tag">
- <ScalarProperty Name="ID" ColumnName="ID" />
- <ScalarProperty Name="Title" ColumnName="Title" />
- <ScalarProperty Name="Color" ColumnName="Color" />
- </MappingFragment>
- </EntityTypeMapping>
- </EntitySetMapping>
- <AssociationSetMapping Name="AttachedProduct" TypeName="school18Model.AttachedProduct" StoreEntitySet="AttachedProduct">
- <EndProperty Name="Product">
- <ScalarProperty Name="ID" ColumnName="MainProductID" />
- </EndProperty>
- <EndProperty Name="Product1">
- <ScalarProperty Name="ID" ColumnName="AttachedProductID" />
- </EndProperty>
- </AssociationSetMapping>
- <AssociationSetMapping Name="TagOfClient" TypeName="school18Model.TagOfClient" StoreEntitySet="TagOfClient">
- <EndProperty Name="Client">
- <ScalarProperty Name="ID" ColumnName="ClientID" />
- </EndProperty>
- <EndProperty Name="Tag">
- <ScalarProperty Name="ID" ColumnName="TagID" />
- </EndProperty>
- </AssociationSetMapping>
- </EntityContainerMapping>
- </Mapping>
|