-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdb.edmx
184 lines (184 loc) · 11.1 KB
/
db.edmx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?xml version="1.0" encoding="utf-8"?>
<edmx:Edmx Version="3.0" xmlns:edmx="http://schemas.microsoft.com/ado/2009/11/edmx">
<!-- EF Runtime content -->
<edmx:Runtime>
<!-- SSDL content -->
<edmx:StorageModels>
<Schema Namespace="BibliotecaModel.Store" 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">
<EntityType Name="Book">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="uniqueidentifier" Nullable="false" />
<Property Name="title" Type="varchar" MaxLength="250" Nullable="false" />
<Property Name="year" Type="varchar" MaxLength="4" />
<Property Name="publisher" Type="varchar" MaxLength="70" />
<Property Name="createdDate" Type="datetime" Nullable="false" />
<Property Name="description" Type="varchar(max)" />
<Property Name="cover" Type="varchar(max)" />
<Property Name="author" Type="varchar" MaxLength="250" />
<Property Name="genre" Type="varchar" MaxLength="30" />
<Property Name="valoration" Type="float" />
</EntityType>
<EntityType Name="User">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="uniqueidentifier" Nullable="false" />
<Property Name="username" Type="varchar" MaxLength="15" Nullable="false" />
<Property Name="password" Type="varchar" MaxLength="64" Nullable="false" />
<Property Name="createdDate" Type="datetime" Nullable="false" />
<Property Name="userType" Type="varchar" MaxLength="20" Nullable="false" />
</EntityType>
<Function Name="books_login" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
<Parameter Name="username" Type="varchar" Mode="In" />
<Parameter Name="password" Type="varchar" Mode="In" />
</Function>
<Function Name="login_books" Aggregate="false" BuiltIn="false" NiladicFunction="false" IsComposable="false" ParameterTypeSemantics="AllowImplicitConversion" Schema="dbo">
<Parameter Name="username" Type="varchar" Mode="In" />
<Parameter Name="password" Type="varchar" Mode="In" />
</Function>
<EntityContainer Name="BibliotecaModelStoreContainer">
<EntitySet Name="Book" EntityType="Self.Book" Schema="dbo" store:Type="Tables" />
<EntitySet Name="User" EntityType="Self.User" Schema="dbo" store:Type="Tables" />
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="BibliotecaModel" 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">
<EntityContainer Name="BibliotecaEntities" annotation:LazyLoadingEnabled="true">
<FunctionImport Name="books_login" ReturnType="Collection(BibliotecaModel.books_login_Result)">
<Parameter Name="username" Mode="In" Type="String" />
<Parameter Name="password" Mode="In" Type="String" />
</FunctionImport>
<FunctionImport Name="login_books" ReturnType="Collection(BibliotecaModel.login_books_Result)">
<Parameter Name="username" Mode="In" Type="String" />
<Parameter Name="password" Mode="In" Type="String" />
</FunctionImport>
<EntitySet Name="Book" EntityType="BibliotecaModel.Book" />
<EntitySet Name="User" EntityType="BibliotecaModel.User" />
</EntityContainer>
<ComplexType Name="books_login_Result">
<Property Type="Guid" Name="id" Nullable="false" />
<Property Type="String" Name="name" Nullable="false" MaxLength="70" />
<Property Type="String" Name="lastName" Nullable="false" MaxLength="70" />
<Property Type="String" Name="username" Nullable="false" MaxLength="15" />
<Property Type="String" Name="password" Nullable="false" MaxLength="64" />
<Property Type="String" Name="email" Nullable="false" MaxLength="320" />
<Property Type="DateTime" Name="createdDate" Nullable="false" Precision="23" />
<Property Type="String" Name="userType" Nullable="false" MaxLength="20" />
</ComplexType>
<ComplexType Name="login_books_Result">
<Property Type="Guid" Name="id" Nullable="false" />
<Property Type="String" Name="username" Nullable="false" MaxLength="15" />
<Property Type="String" Name="password" Nullable="false" MaxLength="64" />
<Property Type="DateTime" Name="createdDate" Nullable="false" Precision="23" />
<Property Type="String" Name="userType" Nullable="false" MaxLength="20" />
</ComplexType>
<EntityType Name="Book">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Guid" Nullable="false" />
<Property Name="title" Type="String" Nullable="false" MaxLength="250" FixedLength="false" Unicode="false" />
<Property Name="year" Type="String" MaxLength="4" FixedLength="false" Unicode="false" />
<Property Name="publisher" Type="String" MaxLength="70" FixedLength="false" Unicode="false" />
<Property Name="createdDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="description" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<Property Name="cover" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<Property Name="author" Type="String" MaxLength="250" FixedLength="false" Unicode="false" />
<Property Name="genre" Type="String" MaxLength="30" FixedLength="false" Unicode="false" />
<Property Name="valoration" Type="Double" />
</EntityType>
<EntityType Name="User">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Guid" Nullable="false" />
<Property Name="username" Type="String" Nullable="false" MaxLength="15" FixedLength="false" Unicode="false" />
<Property Name="password" Type="String" Nullable="false" MaxLength="64" FixedLength="false" Unicode="false" />
<Property Name="createdDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="userType" Type="String" Nullable="false" MaxLength="20" FixedLength="false" Unicode="false" />
</EntityType>
</Schema>
</edmx:ConceptualModels>
<!-- C-S mapping content -->
<edmx:Mappings>
<Mapping Space="C-S" xmlns="http://schemas.microsoft.com/ado/2009/11/mapping/cs">
<EntityContainerMapping StorageEntityContainer="BibliotecaModelStoreContainer" CdmEntityContainer="BibliotecaEntities">
<FunctionImportMapping FunctionImportName="books_login" FunctionName="BibliotecaModel.Store.books_login">
<ResultMapping>
<ComplexTypeMapping TypeName="BibliotecaModel.books_login_Result">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="name" ColumnName="name" />
<ScalarProperty Name="lastName" ColumnName="lastName" />
<ScalarProperty Name="username" ColumnName="username" />
<ScalarProperty Name="password" ColumnName="password" />
<ScalarProperty Name="email" ColumnName="email" />
<ScalarProperty Name="createdDate" ColumnName="createdDate" />
<ScalarProperty Name="userType" ColumnName="userType" />
</ComplexTypeMapping>
</ResultMapping>
</FunctionImportMapping>
<FunctionImportMapping FunctionImportName="login_books" FunctionName="BibliotecaModel.Store.login_books">
<ResultMapping>
<ComplexTypeMapping TypeName="BibliotecaModel.login_books_Result">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="username" ColumnName="username" />
<ScalarProperty Name="password" ColumnName="password" />
<ScalarProperty Name="createdDate" ColumnName="createdDate" />
<ScalarProperty Name="userType" ColumnName="userType" />
</ComplexTypeMapping>
</ResultMapping>
</FunctionImportMapping>
<EntitySetMapping Name="Book">
<EntityTypeMapping TypeName="BibliotecaModel.Book">
<MappingFragment StoreEntitySet="Book">
<ScalarProperty Name="valoration" ColumnName="valoration" />
<ScalarProperty Name="genre" ColumnName="genre" />
<ScalarProperty Name="author" ColumnName="author" />
<ScalarProperty Name="cover" ColumnName="cover" />
<ScalarProperty Name="description" ColumnName="description" />
<ScalarProperty Name="createdDate" ColumnName="createdDate" />
<ScalarProperty Name="publisher" ColumnName="publisher" />
<ScalarProperty Name="year" ColumnName="year" />
<ScalarProperty Name="title" ColumnName="title" />
<ScalarProperty Name="id" ColumnName="id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="User">
<EntityTypeMapping TypeName="BibliotecaModel.User">
<MappingFragment StoreEntitySet="User">
<ScalarProperty Name="userType" ColumnName="userType" />
<ScalarProperty Name="createdDate" ColumnName="createdDate" />
<ScalarProperty Name="password" ColumnName="password" />
<ScalarProperty Name="username" ColumnName="username" />
<ScalarProperty Name="id" ColumnName="id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
</EntityContainerMapping>
</Mapping>
</edmx:Mappings>
</edmx:Runtime>
<!-- EF Designer content (DO NOT EDIT MANUALLY BELOW HERE) -->
<Designer xmlns="http://schemas.microsoft.com/ado/2009/11/edmx">
<Connection>
<DesignerInfoPropertySet>
<DesignerProperty Name="MetadataArtifactProcessing" Value="EmbedInOutputAssembly" />
</DesignerInfoPropertySet>
</Connection>
<Options>
<DesignerInfoPropertySet>
<DesignerProperty Name="ValidateOnBuild" Value="true" />
<DesignerProperty Name="EnablePluralization" Value="false" />
<DesignerProperty Name="IncludeForeignKeysInModel" Value="true" />
<DesignerProperty Name="UseLegacyProvider" Value="false" />
<DesignerProperty Name="CodeGenerationStrategy" Value="None" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>