Model1.edmx 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
  3. <!-- EF Runtime content -->
  4. <edmx:Runtime>
  5. <!-- SSDL content -->
  6. <edmx:StorageModels>
  7. <Schema Namespace="Хранилище user3Model" Provider="System.Data.SqlClient" ProviderManifestToken="2012" Alias="Self" xmlns:store="http://schemas.microsoft.com/ado/2007/12/edm/EntityStoreSchemaGenerator" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm/ssdl">
  8. <EntityType Name="Client">
  9. <Key>
  10. <PropertyRef Name="ID" />
  11. </Key>
  12. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  13. <Property Name="FirstName" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. <Property Name="LastName" Type="nvarchar" MaxLength="50" Nullable="false" />
  15. <Property Name="Patronymic" Type="nvarchar" MaxLength="50" />
  16. <Property Name="Birthday" Type="date" />
  17. <Property Name="RegistrationDate" Type="datetime" Nullable="false" />
  18. <Property Name="Email" Type="nvarchar" MaxLength="255" />
  19. <Property Name="Phone" Type="nvarchar" MaxLength="20" Nullable="false" />
  20. <Property Name="GenderCode" Type="nchar" MaxLength="1" Nullable="false" />
  21. <Property Name="PhotoPath" Type="nvarchar" MaxLength="1000" />
  22. </EntityType>
  23. <EntityType Name="ClientService">
  24. <Key>
  25. <PropertyRef Name="ID" />
  26. </Key>
  27. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  28. <Property Name="ClientID" Type="int" Nullable="false" />
  29. <Property Name="ServiceID" Type="int" Nullable="false" />
  30. <Property Name="StartTime" Type="datetime" Nullable="false" />
  31. <Property Name="Comment" Type="nvarchar(max)" />
  32. </EntityType>
  33. <EntityType Name="Gender">
  34. <Key>
  35. <PropertyRef Name="Code" />
  36. </Key>
  37. <Property Name="Code" Type="nchar" MaxLength="1" Nullable="false" />
  38. <Property Name="Name" Type="nvarchar" MaxLength="10" />
  39. </EntityType>
  40. <EntityType Name="Service">
  41. <Key>
  42. <PropertyRef Name="ID" />
  43. </Key>
  44. <Property Name="ID" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  45. <Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
  46. <Property Name="Cost" Type="money" Nullable="false" />
  47. <Property Name="DurationInMinutes" Type="int" Nullable="false" />
  48. <Property Name="Description" Type="nvarchar(max)" />
  49. <Property Name="Discount" Type="float" />
  50. <Property Name="MainImagePath" Type="nvarchar" MaxLength="1000" />
  51. </EntityType>
  52. <Association Name="FK_Client_Gender">
  53. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  54. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  55. <ReferentialConstraint>
  56. <Principal Role="Gender">
  57. <PropertyRef Name="Code" />
  58. </Principal>
  59. <Dependent Role="Client">
  60. <PropertyRef Name="GenderCode" />
  61. </Dependent>
  62. </ReferentialConstraint>
  63. </Association>
  64. <Association Name="FK_ClientService_Client">
  65. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  66. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  67. <ReferentialConstraint>
  68. <Principal Role="Client">
  69. <PropertyRef Name="ID" />
  70. </Principal>
  71. <Dependent Role="ClientService">
  72. <PropertyRef Name="ClientID" />
  73. </Dependent>
  74. </ReferentialConstraint>
  75. </Association>
  76. <Association Name="FK_ClientService_Service">
  77. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  78. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  79. <ReferentialConstraint>
  80. <Principal Role="Service">
  81. <PropertyRef Name="ID" />
  82. </Principal>
  83. <Dependent Role="ClientService">
  84. <PropertyRef Name="ServiceID" />
  85. </Dependent>
  86. </ReferentialConstraint>
  87. </Association>
  88. <EntityContainer Name="Хранилище user3ModelContainer">
  89. <EntitySet Name="Client" EntityType="Self.Client" Schema="dbo" store:Type="Tables" />
  90. <EntitySet Name="ClientService" EntityType="Self.ClientService" Schema="dbo" store:Type="Tables" />
  91. <EntitySet Name="Gender" EntityType="Self.Gender" Schema="dbo" store:Type="Tables" />
  92. <EntitySet Name="Service" EntityType="Self.Service" Schema="dbo" store:Type="Tables" />
  93. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  94. <End Role="Gender" EntitySet="Gender" />
  95. <End Role="Client" EntitySet="Client" />
  96. </AssociationSet>
  97. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  98. <End Role="Client" EntitySet="Client" />
  99. <End Role="ClientService" EntitySet="ClientService" />
  100. </AssociationSet>
  101. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  102. <End Role="Service" EntitySet="Service" />
  103. <End Role="ClientService" EntitySet="ClientService" />
  104. </AssociationSet>
  105. </EntityContainer>
  106. </Schema>
  107. </edmx:StorageModels>
  108. <!-- CSDL content -->
  109. <edmx:ConceptualModels>
  110. <Schema Namespace="user3Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns:customannotation="http://schemas.microsoft.com/ado/2013/11/edm/customannotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
  111. <EntityType Name="Client">
  112. <Key>
  113. <PropertyRef Name="ID" />
  114. </Key>
  115. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  116. <Property Name="FirstName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  117. <Property Name="LastName" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  118. <Property Name="Patronymic" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
  119. <Property Name="Birthday" Type="DateTime" Precision="0" />
  120. <Property Name="RegistrationDate" Type="DateTime" Nullable="false" Precision="3" />
  121. <Property Name="Email" Type="String" MaxLength="255" FixedLength="false" Unicode="true" />
  122. <Property Name="Phone" Type="String" MaxLength="20" FixedLength="false" Unicode="true" Nullable="false" />
  123. <Property Name="GenderCode" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  124. <Property Name="PhotoPath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  125. <NavigationProperty Name="Gender" Relationship="Self.FK_Client_Gender" FromRole="Client" ToRole="Gender" />
  126. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Client" FromRole="Client" ToRole="ClientService" />
  127. </EntityType>
  128. <EntityType Name="ClientService">
  129. <Key>
  130. <PropertyRef Name="ID" />
  131. </Key>
  132. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  133. <Property Name="ClientID" Type="Int32" Nullable="false" />
  134. <Property Name="ServiceID" Type="Int32" Nullable="false" />
  135. <Property Name="StartTime" Type="DateTime" Nullable="false" Precision="3" />
  136. <Property Name="Comment" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  137. <NavigationProperty Name="Client" Relationship="Self.FK_ClientService_Client" FromRole="ClientService" ToRole="Client" />
  138. <NavigationProperty Name="Service" Relationship="Self.FK_ClientService_Service" FromRole="ClientService" ToRole="Service" />
  139. </EntityType>
  140. <EntityType Name="Gender">
  141. <Key>
  142. <PropertyRef Name="Code" />
  143. </Key>
  144. <Property Name="Code" Type="String" MaxLength="1" FixedLength="true" Unicode="true" Nullable="false" />
  145. <Property Name="Name" Type="String" MaxLength="10" FixedLength="false" Unicode="true" />
  146. <NavigationProperty Name="Client" Relationship="Self.FK_Client_Gender" FromRole="Gender" ToRole="Client" />
  147. </EntityType>
  148. <EntityType Name="Service">
  149. <Key>
  150. <PropertyRef Name="ID" />
  151. </Key>
  152. <Property Name="ID" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  153. <Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  154. <Property Name="Cost" Type="Decimal" Precision="19" Scale="4" Nullable="false" />
  155. <Property Name="DurationInMinutes" Type="Int32" Nullable="false" />
  156. <Property Name="Description" Type="String" MaxLength="Max" FixedLength="false" Unicode="true" />
  157. <Property Name="Discount" Type="Double" />
  158. <Property Name="MainImagePath" Type="String" MaxLength="1000" FixedLength="false" Unicode="true" />
  159. <NavigationProperty Name="ClientService" Relationship="Self.FK_ClientService_Service" FromRole="Service" ToRole="ClientService" />
  160. </EntityType>
  161. <Association Name="FK_Client_Gender">
  162. <End Role="Gender" Type="Self.Gender" Multiplicity="1" />
  163. <End Role="Client" Type="Self.Client" Multiplicity="*" />
  164. <ReferentialConstraint>
  165. <Principal Role="Gender">
  166. <PropertyRef Name="Code" />
  167. </Principal>
  168. <Dependent Role="Client">
  169. <PropertyRef Name="GenderCode" />
  170. </Dependent>
  171. </ReferentialConstraint>
  172. </Association>
  173. <Association Name="FK_ClientService_Client">
  174. <End Role="Client" Type="Self.Client" Multiplicity="1" />
  175. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  176. <ReferentialConstraint>
  177. <Principal Role="Client">
  178. <PropertyRef Name="ID" />
  179. </Principal>
  180. <Dependent Role="ClientService">
  181. <PropertyRef Name="ClientID" />
  182. </Dependent>
  183. </ReferentialConstraint>
  184. </Association>
  185. <Association Name="FK_ClientService_Service">
  186. <End Role="Service" Type="Self.Service" Multiplicity="1" />
  187. <End Role="ClientService" Type="Self.ClientService" Multiplicity="*" />
  188. <ReferentialConstraint>
  189. <Principal Role="Service">
  190. <PropertyRef Name="ID" />
  191. </Principal>
  192. <Dependent Role="ClientService">
  193. <PropertyRef Name="ServiceID" />
  194. </Dependent>
  195. </ReferentialConstraint>
  196. </Association>
  197. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  198. <EntitySet Name="Client" EntityType="Self.Client" />
  199. <EntitySet Name="ClientService" EntityType="Self.ClientService" />
  200. <EntitySet Name="Gender" EntityType="Self.Gender" />
  201. <EntitySet Name="Service" EntityType="Self.Service" />
  202. <AssociationSet Name="FK_Client_Gender" Association="Self.FK_Client_Gender">
  203. <End Role="Gender" EntitySet="Gender" />
  204. <End Role="Client" EntitySet="Client" />
  205. </AssociationSet>
  206. <AssociationSet Name="FK_ClientService_Client" Association="Self.FK_ClientService_Client">
  207. <End Role="Client" EntitySet="Client" />
  208. <End Role="ClientService" EntitySet="ClientService" />
  209. </AssociationSet>
  210. <AssociationSet Name="FK_ClientService_Service" Association="Self.FK_ClientService_Service">
  211. <End Role="Service" EntitySet="Service" />
  212. <End Role="ClientService" EntitySet="ClientService" />
  213. </AssociationSet>
  214. </EntityContainer>
  215. </Schema>
  216. </edmx:ConceptualModels>
  217. <!-- C-S mapping content -->
  218. <edmx:Mappings>
  219. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  220. <EntityContainerMapping StorageEntityContainer="Хранилище user3ModelContainer" CdmEntityContainer="Entities">
  221. <EntitySetMapping Name="Client">
  222. <EntityTypeMapping TypeName="user3Model.Client">
  223. <MappingFragment StoreEntitySet="Client">
  224. <ScalarProperty Name="ID" ColumnName="ID" />
  225. <ScalarProperty Name="FirstName" ColumnName="FirstName" />
  226. <ScalarProperty Name="LastName" ColumnName="LastName" />
  227. <ScalarProperty Name="Patronymic" ColumnName="Patronymic" />
  228. <ScalarProperty Name="Birthday" ColumnName="Birthday" />
  229. <ScalarProperty Name="RegistrationDate" ColumnName="RegistrationDate" />
  230. <ScalarProperty Name="Email" ColumnName="Email" />
  231. <ScalarProperty Name="Phone" ColumnName="Phone" />
  232. <ScalarProperty Name="GenderCode" ColumnName="GenderCode" />
  233. <ScalarProperty Name="PhotoPath" ColumnName="PhotoPath" />
  234. </MappingFragment>
  235. </EntityTypeMapping>
  236. </EntitySetMapping>
  237. <EntitySetMapping Name="ClientService">
  238. <EntityTypeMapping TypeName="user3Model.ClientService">
  239. <MappingFragment StoreEntitySet="ClientService">
  240. <ScalarProperty Name="ID" ColumnName="ID" />
  241. <ScalarProperty Name="ClientID" ColumnName="ClientID" />
  242. <ScalarProperty Name="ServiceID" ColumnName="ServiceID" />
  243. <ScalarProperty Name="StartTime" ColumnName="StartTime" />
  244. <ScalarProperty Name="Comment" ColumnName="Comment" />
  245. </MappingFragment>
  246. </EntityTypeMapping>
  247. </EntitySetMapping>
  248. <EntitySetMapping Name="Gender">
  249. <EntityTypeMapping TypeName="user3Model.Gender">
  250. <MappingFragment StoreEntitySet="Gender">
  251. <ScalarProperty Name="Code" ColumnName="Code" />
  252. <ScalarProperty Name="Name" ColumnName="Name" />
  253. </MappingFragment>
  254. </EntityTypeMapping>
  255. </EntitySetMapping>
  256. <EntitySetMapping Name="Service">
  257. <EntityTypeMapping TypeName="user3Model.Service">
  258. <MappingFragment StoreEntitySet="Service">
  259. <ScalarProperty Name="ID" ColumnName="ID" />
  260. <ScalarProperty Name="Title" ColumnName="Title" />
  261. <ScalarProperty Name="Cost" ColumnName="Cost" />
  262. <ScalarProperty Name="DurationInMinutes" ColumnName="DurationInMinutes" />
  263. <ScalarProperty Name="Description" ColumnName="Description" />
  264. <ScalarProperty Name="Discount" ColumnName="Discount" />
  265. <ScalarProperty Name="MainImagePath" ColumnName="MainImagePath" />
  266. </MappingFragment>
  267. </EntityTypeMapping>
  268. </EntitySetMapping>
  269. </EntityContainerMapping>
  270. </Mapping>
  271. </edmx:Mappings>
  272. </edmx:Runtime>
  273. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  274. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  275. <Connection>
  276. <DesignerInfoPropertySet>
  277. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  278. </DesignerInfoPropertySet>
  279. </Connection>
  280. <Options>
  281. <DesignerInfoPropertySet>
  282. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  283. <DesignerProperty Name="EnablePluralization" Value="false" />
  284. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  285. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  286. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  287. </DesignerInfoPropertySet>
  288. </Options>
  289. <!-- Diagram content (shape and connector positions) -->
  290. <Diagrams></Diagrams>
  291. </Designer>
  292. </edmx:Edmx>