-
Notifications
You must be signed in to change notification settings - Fork 2
/
GalaxyEDM.edmx
297 lines (297 loc) · 18.2 KB
/
GalaxyEDM.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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
<?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="GalaxyModel.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="Books">
<Key>
<PropertyRef Name="BookID" />
</Key>
<Property Name="BookID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Title" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="Publisher" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Author" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="BookCategory" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Location" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Price" Type="float" Nullable="false" />
<Property Name="TotalStock" Type="int" Nullable="false" />
<Property Name="NumberBorrowed" Type="int" Nullable="false" />
<Property Name="Availability" Type="nvarchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="Members">
<Key>
<PropertyRef Name="MemberID" />
</Key>
<Property Name="MemberID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="MemberCategory" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="DateOfBirth" Type="datetime" Nullable="false" />
<Property Name="Address" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="PhoneNumber" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="EmailAddress" Type="nvarchar" MaxLength="50" />
<Property Name="CurrentBorrowing" Type="int" Nullable="false" />
<Property Name="FineAmount" Type="float" Nullable="false" />
<Property Name="Status" Type="nvarchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="Staff">
<Key>
<PropertyRef Name="StaffID" />
</Key>
<Property Name="StaffID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Name" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Position" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Address" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="PhoneNumber" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="EmailAddress" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Username" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Password" Type="nvarchar" MaxLength="50" Nullable="false" />
</EntityType>
<EntityType Name="Transactions">
<Key>
<PropertyRef Name="TransactionID" />
</Key>
<Property Name="TransactionID" Type="int" Nullable="false" />
<Property Name="BookID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="MemberID" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="IssueDate" Type="datetime" Nullable="false" />
<Property Name="DueDate" Type="datetime" Nullable="false" />
<Property Name="ReturnDate" Type="datetime" />
<Property Name="LoanStatus" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Remarks" Type="nvarchar" MaxLength="200" />
<Property Name="ExtensionCount" Type="int" Nullable="false" />
</EntityType>
<Association Name="FK__Transacti__BookI__534D60F1">
<End Role="Books" Type="Self.Books" Multiplicity="1" />
<End Role="Transactions" Type="Self.Transactions" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Books">
<PropertyRef Name="BookID" />
</Principal>
<Dependent Role="Transactions">
<PropertyRef Name="BookID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK__Transacti__Membe__6383C8BA">
<End Role="Members" Type="Self.Members" Multiplicity="1" />
<End Role="Transactions" Type="Self.Transactions" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Members">
<PropertyRef Name="MemberID" />
</Principal>
<Dependent Role="Transactions">
<PropertyRef Name="MemberID" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="GalaxyModelStoreContainer">
<EntitySet Name="Books" EntityType="Self.Books" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Members" EntityType="Self.Members" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Staff" EntityType="Self.Staff" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Transactions" EntityType="Self.Transactions" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK__Transacti__BookI__534D60F1" Association="Self.FK__Transacti__BookI__534D60F1">
<End Role="Books" EntitySet="Books" />
<End Role="Transactions" EntitySet="Transactions" />
</AssociationSet>
<AssociationSet Name="FK__Transacti__Membe__6383C8BA" Association="Self.FK__Transacti__Membe__6383C8BA">
<End Role="Members" EntitySet="Members" />
<End Role="Transactions" EntitySet="Transactions" />
</AssociationSet>
</EntityContainer>
</Schema>
</edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="GalaxyModel" 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">
<EntityType Name="Book">
<Key>
<PropertyRef Name="BookID" />
</Key>
<Property Name="BookID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Publisher" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Author" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="BookCategory" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Location" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Price" Type="Double" Nullable="false" />
<Property Name="TotalStock" Type="Int32" Nullable="false" />
<Property Name="NumberBorrowed" Type="Int32" Nullable="false" />
<Property Name="Availability" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Transactions" Relationship="Self.FK__Transacti__BookI__534D60F1" FromRole="Books" ToRole="Transactions" />
</EntityType>
<EntityType Name="Member">
<Key>
<PropertyRef Name="MemberID" />
</Key>
<Property Name="MemberID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="MemberCategory" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="DateOfBirth" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="Address" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="PhoneNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="CurrentBorrowing" Type="Int32" Nullable="false" />
<Property Name="FineAmount" Type="Double" Nullable="false" />
<Property Name="Status" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<NavigationProperty Name="Transactions" Relationship="Self.FK__Transacti__Membe__6383C8BA" FromRole="Members" ToRole="Transactions" />
</EntityType>
<EntityType Name="Staff">
<Key>
<PropertyRef Name="StaffID" />
</Key>
<Property Name="StaffID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Name" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Position" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Address" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="PhoneNumber" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="EmailAddress" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Username" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Password" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
</EntityType>
<EntityType Name="Transaction">
<Key>
<PropertyRef Name="TransactionID" />
</Key>
<Property Name="TransactionID" Type="Int32" Nullable="false" />
<Property Name="BookID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="MemberID" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="IssueDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="DueDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="ReturnDate" Type="DateTime" Precision="3" />
<Property Name="LoanStatus" Type="String" MaxLength="50" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="Remarks" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
<Property Name="ExtensionCount" Type="Int32" Nullable="false" />
<NavigationProperty Name="Book" Relationship="Self.FK__Transacti__BookI__534D60F1" FromRole="Transactions" ToRole="Books" />
<NavigationProperty Name="Member" Relationship="Self.FK__Transacti__Membe__6383C8BA" FromRole="Transactions" ToRole="Members" />
</EntityType>
<Association Name="FK__Transacti__BookI__534D60F1">
<End Role="Books" Type="Self.Book" Multiplicity="1" />
<End Role="Transactions" Type="Self.Transaction" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Books">
<PropertyRef Name="BookID" />
</Principal>
<Dependent Role="Transactions">
<PropertyRef Name="BookID" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK__Transacti__Membe__6383C8BA">
<End Role="Members" Type="Self.Member" Multiplicity="1" />
<End Role="Transactions" Type="Self.Transaction" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Members">
<PropertyRef Name="MemberID" />
</Principal>
<Dependent Role="Transactions">
<PropertyRef Name="MemberID" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="GalaxyEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Books" EntityType="Self.Book" />
<EntitySet Name="Members" EntityType="Self.Member" />
<EntitySet Name="Staffs" EntityType="Self.Staff" />
<EntitySet Name="Transactions" EntityType="Self.Transaction" />
<AssociationSet Name="FK__Transacti__BookI__534D60F1" Association="Self.FK__Transacti__BookI__534D60F1">
<End Role="Books" EntitySet="Books" />
<End Role="Transactions" EntitySet="Transactions" />
</AssociationSet>
<AssociationSet Name="FK__Transacti__Membe__6383C8BA" Association="Self.FK__Transacti__Membe__6383C8BA">
<End Role="Members" EntitySet="Members" />
<End Role="Transactions" EntitySet="Transactions" />
</AssociationSet>
</EntityContainer>
</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="GalaxyModelStoreContainer" CdmEntityContainer="GalaxyEntities">
<EntitySetMapping Name="Books">
<EntityTypeMapping TypeName="GalaxyModel.Book">
<MappingFragment StoreEntitySet="Books">
<ScalarProperty Name="BookID" ColumnName="BookID" />
<ScalarProperty Name="Title" ColumnName="Title" />
<ScalarProperty Name="Publisher" ColumnName="Publisher" />
<ScalarProperty Name="Author" ColumnName="Author" />
<ScalarProperty Name="BookCategory" ColumnName="BookCategory" />
<ScalarProperty Name="Location" ColumnName="Location" />
<ScalarProperty Name="Price" ColumnName="Price" />
<ScalarProperty Name="TotalStock" ColumnName="TotalStock" />
<ScalarProperty Name="NumberBorrowed" ColumnName="NumberBorrowed" />
<ScalarProperty Name="Availability" ColumnName="Availability" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Members">
<EntityTypeMapping TypeName="GalaxyModel.Member">
<MappingFragment StoreEntitySet="Members">
<ScalarProperty Name="MemberID" ColumnName="MemberID" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="MemberCategory" ColumnName="MemberCategory" />
<ScalarProperty Name="DateOfBirth" ColumnName="DateOfBirth" />
<ScalarProperty Name="Address" ColumnName="Address" />
<ScalarProperty Name="PhoneNumber" ColumnName="PhoneNumber" />
<ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
<ScalarProperty Name="CurrentBorrowing" ColumnName="CurrentBorrowing" />
<ScalarProperty Name="FineAmount" ColumnName="FineAmount" />
<ScalarProperty Name="Status" ColumnName="Status" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Staffs">
<EntityTypeMapping TypeName="GalaxyModel.Staff">
<MappingFragment StoreEntitySet="Staff">
<ScalarProperty Name="StaffID" ColumnName="StaffID" />
<ScalarProperty Name="Name" ColumnName="Name" />
<ScalarProperty Name="Position" ColumnName="Position" />
<ScalarProperty Name="Address" ColumnName="Address" />
<ScalarProperty Name="PhoneNumber" ColumnName="PhoneNumber" />
<ScalarProperty Name="EmailAddress" ColumnName="EmailAddress" />
<ScalarProperty Name="Username" ColumnName="Username" />
<ScalarProperty Name="Password" ColumnName="Password" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Transactions">
<EntityTypeMapping TypeName="GalaxyModel.Transaction">
<MappingFragment StoreEntitySet="Transactions">
<ScalarProperty Name="TransactionID" ColumnName="TransactionID" />
<ScalarProperty Name="BookID" ColumnName="BookID" />
<ScalarProperty Name="MemberID" ColumnName="MemberID" />
<ScalarProperty Name="IssueDate" ColumnName="IssueDate" />
<ScalarProperty Name="DueDate" ColumnName="DueDate" />
<ScalarProperty Name="ReturnDate" ColumnName="ReturnDate" />
<ScalarProperty Name="LoanStatus" ColumnName="LoanStatus" />
<ScalarProperty Name="Remarks" ColumnName="Remarks" />
<ScalarProperty Name="ExtensionCount" ColumnName="ExtensionCount" />
</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="true" />
<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>