Model1.edmx 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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="Хранилище Model" 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="Фамилия" />
  11. </Key>
  12. <Property Name="Фамилия" Type="nvarchar" MaxLength="50" Nullable="false" />
  13. <Property Name="Имя" Type="nvarchar" MaxLength="50" Nullable="false" />
  14. <Property Name="Отчество" Type="nvarchar" MaxLength="50" Nullable="false" />
  15. <Property Name="Пол" Type="nvarchar" MaxLength="50" Nullable="false" />
  16. <Property Name="Телефон" Type="nvarchar" MaxLength="50" Nullable="false" />
  17. <Property Name="Дата_рождения" Type="datetime2" Precision="7" Nullable="false" />
  18. <Property Name="Email" Type="nvarchar" MaxLength="50" Nullable="false" />
  19. <Property Name="Дата_регистрации" Type="datetime2" Precision="7" Nullable="false" />
  20. </EntityType>
  21. <EntityType Name="service">
  22. <Key>
  23. <PropertyRef Name="Наименование_услуги" />
  24. </Key>
  25. <Property Name="Наименование_услуги" Type="nvarchar" MaxLength="50" Nullable="false" />
  26. <Property Name="Главное_изображение" Type="nvarchar" MaxLength="100" Nullable="false" />
  27. <Property Name="Длительность" Type="nvarchar" MaxLength="50" Nullable="false" />
  28. <Property Name="Стоимость" Type="nvarchar" MaxLength="50" Nullable="false" />
  29. <Property Name="Действующая_скидка" Type="nvarchar" MaxLength="50" Nullable="false" />
  30. </EntityType>
  31. <!--Ошибки, обнаруженные при создании:
  32. предупреждение 6002: В таблице или представлении "AstapovYNISP-33.dbo.serviceclient" не определен первичный ключ. Ключ был выведен, а определение таблицы или представления было создано в режиме только для чтения.-->
  33. <EntityType Name="serviceclient">
  34. <Key>
  35. <PropertyRef Name="Услуга" />
  36. <PropertyRef Name="Начало_оказания_услуги" />
  37. <PropertyRef Name="Клиент" />
  38. </Key>
  39. <Property Name="Услуга" Type="nvarchar" MaxLength="50" Nullable="false" />
  40. <Property Name="Начало_оказания_услуги" Type="datetime2" Precision="7" Nullable="false" />
  41. <Property Name="Клиент" Type="nvarchar" MaxLength="50" Nullable="false" />
  42. </EntityType>
  43. <EntityType Name="sysdiagrams">
  44. <Key>
  45. <PropertyRef Name="diagram_id" />
  46. </Key>
  47. <Property Name="name" Type="nvarchar" MaxLength="128" Nullable="false" />
  48. <Property Name="principal_id" Type="int" Nullable="false" />
  49. <Property Name="diagram_id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
  50. <Property Name="version" Type="int" />
  51. <Property Name="definition" Type="varbinary(max)" />
  52. </EntityType>
  53. <Function Name="fn_diagramobjects" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="true" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" ReturnType="int" />
  54. <Function Name="sp_alterdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  55. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  56. <Parameter Name="owner_id" Type="int" Mode="In" />
  57. <Parameter Name="version" Type="int" Mode="In" />
  58. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  59. </Function>
  60. <Function Name="sp_creatediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  61. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  62. <Parameter Name="owner_id" Type="int" Mode="In" />
  63. <Parameter Name="version" Type="int" Mode="In" />
  64. <Parameter Name="definition" Type="varbinary(max)" Mode="In" />
  65. </Function>
  66. <Function Name="sp_dropdiagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  67. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  68. <Parameter Name="owner_id" Type="int" Mode="In" />
  69. </Function>
  70. <Function Name="sp_helpdiagramdefinition" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  71. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  72. <Parameter Name="owner_id" Type="int" Mode="In" />
  73. </Function>
  74. <Function Name="sp_helpdiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  75. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  76. <Parameter Name="owner_id" Type="int" Mode="In" />
  77. </Function>
  78. <Function Name="sp_renamediagram" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
  79. <Parameter Name="diagramname" Type="nvarchar" Mode="In" />
  80. <Parameter Name="owner_id" Type="int" Mode="In" />
  81. <Parameter Name="new_diagramname" Type="nvarchar" Mode="In" />
  82. </Function>
  83. <Function Name="sp_upgraddiagrams" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo" />
  84. <EntityContainer Name="Хранилище ModelContainer">
  85. <EntitySet Name="client" EntityType="Self.client" Schema="dbo" store:Type="Tables" />
  86. <EntitySet Name="service" EntityType="Self.service" Schema="dbo" store:Type="Tables" />
  87. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" Schema="dbo" store:Type="Tables" />
  88. <EntitySet Name="serviceclient" EntityType="Self.serviceclient" store:Type="Tables" store:Schema="dbo">
  89. <DefiningQuery>SELECT
  90. [serviceclient].[Услуга] AS [Услуга],
  91. [serviceclient].[Начало_оказания_услуги] AS [Начало_оказания_услуги],
  92. [serviceclient].[Клиент] AS [Клиент]
  93. FROM [dbo].[serviceclient] AS [serviceclient]</DefiningQuery>
  94. </EntitySet>
  95. </EntityContainer>
  96. </Schema>
  97. </edmx:StorageModels>
  98. <!-- CSDL content -->
  99. <edmx:ConceptualModels>
  100. <Schema Namespace="Model" 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">
  101. <EntityType Name="client">
  102. <Key>
  103. <PropertyRef Name="Фамилия" />
  104. </Key>
  105. <Property Name="Фамилия" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  106. <Property Name="Имя" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  107. <Property Name="Отчество" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  108. <Property Name="Пол" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  109. <Property Name="Телефон" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  110. <Property Name="Дата_рождения" Type="DateTime" Nullable="false" Precision="7" />
  111. <Property Name="Email" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  112. <Property Name="Дата_регистрации" Type="DateTime" Nullable="false" Precision="7" />
  113. </EntityType>
  114. <EntityType Name="service">
  115. <Key>
  116. <PropertyRef Name="Наименование_услуги" />
  117. </Key>
  118. <Property Name="Наименование_услуги" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  119. <Property Name="Главное_изображение" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
  120. <Property Name="Длительность" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  121. <Property Name="Стоимость" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  122. <Property Name="Действующая_скидка" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  123. </EntityType>
  124. <EntityType Name="sysdiagrams">
  125. <Key>
  126. <PropertyRef Name="diagram_id" />
  127. </Key>
  128. <Property Name="name" Type="String" MaxLength="128" FixedLength="false" Unicode="true" Nullable="false" />
  129. <Property Name="principal_id" Type="Int32" Nullable="false" />
  130. <Property Name="diagram_id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
  131. <Property Name="version" Type="Int32" />
  132. <Property Name="definition" Type="Binary" MaxLength="Max" FixedLength="false" />
  133. </EntityType>
  134. <EntityType Name="serviceclient">
  135. <Key>
  136. <PropertyRef Name="Услуга" />
  137. <PropertyRef Name="Начало_оказания_услуги" />
  138. <PropertyRef Name="Клиент" />
  139. </Key>
  140. <Property Name="Услуга" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  141. <Property Name="Начало_оказания_услуги" Type="DateTime" Nullable="false" Precision="7" />
  142. <Property Name="Клиент" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
  143. </EntityType>
  144. <EntityContainer Name="Entities" annotation:LazyLoadingEnabled="true">
  145. <EntitySet Name="client" EntityType="Self.client" />
  146. <EntitySet Name="service" EntityType="Self.service" />
  147. <EntitySet Name="sysdiagrams" EntityType="Self.sysdiagrams" />
  148. <EntitySet Name="serviceclient" EntityType="Self.serviceclient" />
  149. <FunctionImport Name="sp_alterdiagram">
  150. <Parameter Name="diagramname" Mode="In" Type="String" />
  151. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  152. <Parameter Name="version" Mode="In" Type="Int32" />
  153. <Parameter Name="definition" Mode="In" Type="Binary" />
  154. </FunctionImport>
  155. <FunctionImport Name="sp_creatediagram">
  156. <Parameter Name="diagramname" Mode="In" Type="String" />
  157. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  158. <Parameter Name="version" Mode="In" Type="Int32" />
  159. <Parameter Name="definition" Mode="In" Type="Binary" />
  160. </FunctionImport>
  161. <FunctionImport Name="sp_dropdiagram">
  162. <Parameter Name="diagramname" Mode="In" Type="String" />
  163. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  164. </FunctionImport>
  165. <FunctionImport Name="sp_helpdiagramdefinition" ReturnType="Collection(Model.sp_helpdiagramdefinition_Result)">
  166. <Parameter Name="diagramname" Mode="In" Type="String" />
  167. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  168. </FunctionImport>
  169. <FunctionImport Name="sp_helpdiagrams" ReturnType="Collection(Model.sp_helpdiagrams_Result)">
  170. <Parameter Name="diagramname" Mode="In" Type="String" />
  171. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  172. </FunctionImport>
  173. <FunctionImport Name="sp_renamediagram">
  174. <Parameter Name="diagramname" Mode="In" Type="String" />
  175. <Parameter Name="owner_id" Mode="In" Type="Int32" />
  176. <Parameter Name="new_diagramname" Mode="In" Type="String" />
  177. </FunctionImport>
  178. <FunctionImport Name="sp_upgraddiagrams" />
  179. </EntityContainer>
  180. <ComplexType Name="sp_helpdiagramdefinition_Result">
  181. <Property Type="Int32" Name="version" Nullable="true" />
  182. <Property Type="Binary" Name="definition" Nullable="true" />
  183. </ComplexType>
  184. <ComplexType Name="sp_helpdiagrams_Result">
  185. <Property Type="String" Name="Database" Nullable="true" MaxLength="128" />
  186. <Property Type="String" Name="Name" Nullable="false" MaxLength="128" />
  187. <Property Type="Int32" Name="ID" Nullable="false" />
  188. <Property Type="String" Name="Owner" Nullable="true" MaxLength="128" />
  189. <Property Type="Int32" Name="OwnerID" Nullable="false" />
  190. </ComplexType>
  191. </Schema>
  192. </edmx:ConceptualModels>
  193. <!-- C-S mapping content -->
  194. <edmx:Mappings>
  195. <Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
  196. <EntityContainerMapping StorageEntityContainer="Хранилище ModelContainer" CdmEntityContainer="Entities">
  197. <EntitySetMapping Name="client">
  198. <EntityTypeMapping TypeName="Model.client">
  199. <MappingFragment StoreEntitySet="client">
  200. <ScalarProperty Name="Фамилия" ColumnName="Фамилия" />
  201. <ScalarProperty Name="Имя" ColumnName="Имя" />
  202. <ScalarProperty Name="Отчество" ColumnName="Отчество" />
  203. <ScalarProperty Name="Пол" ColumnName="Пол" />
  204. <ScalarProperty Name="Телефон" ColumnName="Телефон" />
  205. <ScalarProperty Name="Дата_рождения" ColumnName="Дата_рождения" />
  206. <ScalarProperty Name="Email" ColumnName="Email" />
  207. <ScalarProperty Name="Дата_регистрации" ColumnName="Дата_регистрации" />
  208. </MappingFragment>
  209. </EntityTypeMapping>
  210. </EntitySetMapping>
  211. <EntitySetMapping Name="service">
  212. <EntityTypeMapping TypeName="Model.service">
  213. <MappingFragment StoreEntitySet="service">
  214. <ScalarProperty Name="Наименование_услуги" ColumnName="Наименование_услуги" />
  215. <ScalarProperty Name="Главное_изображение" ColumnName="Главное_изображение" />
  216. <ScalarProperty Name="Длительность" ColumnName="Длительность" />
  217. <ScalarProperty Name="Стоимость" ColumnName="Стоимость" />
  218. <ScalarProperty Name="Действующая_скидка" ColumnName="Действующая_скидка" />
  219. </MappingFragment>
  220. </EntityTypeMapping>
  221. </EntitySetMapping>
  222. <EntitySetMapping Name="sysdiagrams">
  223. <EntityTypeMapping TypeName="Model.sysdiagrams">
  224. <MappingFragment StoreEntitySet="sysdiagrams">
  225. <ScalarProperty Name="name" ColumnName="name" />
  226. <ScalarProperty Name="principal_id" ColumnName="principal_id" />
  227. <ScalarProperty Name="diagram_id" ColumnName="diagram_id" />
  228. <ScalarProperty Name="version" ColumnName="version" />
  229. <ScalarProperty Name="definition" ColumnName="definition" />
  230. </MappingFragment>
  231. </EntityTypeMapping>
  232. </EntitySetMapping>
  233. <EntitySetMapping Name="serviceclient">
  234. <EntityTypeMapping TypeName="Model.serviceclient">
  235. <MappingFragment StoreEntitySet="serviceclient">
  236. <ScalarProperty Name="Услуга" ColumnName="Услуга" />
  237. <ScalarProperty Name="Начало_оказания_услуги" ColumnName="Начало_оказания_услуги" />
  238. <ScalarProperty Name="Клиент" ColumnName="Клиент" />
  239. </MappingFragment>
  240. </EntityTypeMapping>
  241. </EntitySetMapping>
  242. <FunctionImportMapping FunctionImportName="sp_alterdiagram" FunctionName="Хранилище Model.sp_alterdiagram" />
  243. <FunctionImportMapping FunctionImportName="sp_creatediagram" FunctionName="Хранилище Model.sp_creatediagram" />
  244. <FunctionImportMapping FunctionImportName="sp_dropdiagram" FunctionName="Хранилище Model.sp_dropdiagram" />
  245. <FunctionImportMapping FunctionImportName="sp_helpdiagramdefinition" FunctionName="Хранилище Model.sp_helpdiagramdefinition">
  246. <ResultMapping>
  247. <ComplexTypeMapping TypeName="Model.sp_helpdiagramdefinition_Result">
  248. <ScalarProperty Name="version" ColumnName="version" />
  249. <ScalarProperty Name="definition" ColumnName="definition" />
  250. </ComplexTypeMapping>
  251. </ResultMapping>
  252. </FunctionImportMapping>
  253. <FunctionImportMapping FunctionImportName="sp_helpdiagrams" FunctionName="Хранилище Model.sp_helpdiagrams">
  254. <ResultMapping>
  255. <ComplexTypeMapping TypeName="Model.sp_helpdiagrams_Result">
  256. <ScalarProperty Name="Database" ColumnName="Database" />
  257. <ScalarProperty Name="Name" ColumnName="Name" />
  258. <ScalarProperty Name="ID" ColumnName="ID" />
  259. <ScalarProperty Name="Owner" ColumnName="Owner" />
  260. <ScalarProperty Name="OwnerID" ColumnName="OwnerID" />
  261. </ComplexTypeMapping>
  262. </ResultMapping>
  263. </FunctionImportMapping>
  264. <FunctionImportMapping FunctionImportName="sp_renamediagram" FunctionName="Хранилище Model.sp_renamediagram" />
  265. <FunctionImportMapping FunctionImportName="sp_upgraddiagrams" FunctionName="Хранилище Model.sp_upgraddiagrams" />
  266. </EntityContainerMapping>
  267. </Mapping>
  268. </edmx:Mappings>
  269. </edmx:Runtime>
  270. <!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
  271. <Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
  272. <Connection>
  273. <DesignerInfoPropertySet>
  274. <DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
  275. </DesignerInfoPropertySet>
  276. </Connection>
  277. <Options>
  278. <DesignerInfoPropertySet>
  279. <DesignerProperty Name="ValidateOnBuild" Value="true" />
  280. <DesignerProperty Name="EnablePluralization" Value="false" />
  281. <DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
  282. <DesignerProperty Name="UseLegacyProvider" Value="false" />
  283. <DesignerProperty Name="CodeGenerationStrategy" Value="Нет" />
  284. </DesignerInfoPropertySet>
  285. </Options>
  286. <!-- Diagram content (shape and connector positions) -->
  287. <Diagrams></Diagrams>
  288. </Designer>
  289. </edmx:Edmx>