-
Notifications
You must be signed in to change notification settings - Fork 0
/
skola_edm.edmx
140 lines (140 loc) · 7.41 KB
/
skola_edm.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
<?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="razrediModel.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="raz_odjel">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="odjel" Type="char" MaxLength="1" Nullable="false" />
<Property Name="nastavnik" Type="nvarchar" MaxLength="200" />
</EntityType>
<EntityType Name="ucenik">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="ime" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="prezime" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="oib" Type="char" MaxLength="11" Nullable="false" />
<Property Name="raz_id" Type="int" />
</EntityType>
<Association Name="fk_raz">
<End Role="raz_odjel" Type="Self.raz_odjel" Multiplicity="0..1" />
<End Role="ucenik" Type="Self.ucenik" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="raz_odjel">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="ucenik">
<PropertyRef Name="raz_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="razrediModelStoreContainer">
<EntitySet Name="raz_odjel" EntityType="Self.raz_odjel" Schema="dbo" store:Type="Tables" />
<EntitySet Name="ucenik" EntityType="Self.ucenik" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="fk_raz" Association="Self.fk_raz">
<End Role="raz_odjel" EntitySet="raz_odjel" />
<End Role="ucenik" EntitySet="ucenik" />
</AssociationSet>
</EntityContainer>
</Schema>
</edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="razrediModel" 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="raz_odjel">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="odjel" Type="String" MaxLength="1" FixedLength="true" Unicode="false" Nullable="false" />
<Property Name="nastavnik" Type="String" MaxLength="200" FixedLength="false" Unicode="true" />
<NavigationProperty Name="ucenik" Relationship="Self.fk_raz" FromRole="raz_odjel" ToRole="ucenik" />
</EntityType>
<EntityType Name="ucenik">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="ime" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="prezime" Type="String" MaxLength="100" FixedLength="false" Unicode="true" Nullable="false" />
<Property Name="oib" Type="String" MaxLength="11" FixedLength="true" Unicode="false" Nullable="false" />
<Property Name="raz_id" Type="Int32" />
<NavigationProperty Name="raz_odjel" Relationship="Self.fk_raz" FromRole="ucenik" ToRole="raz_odjel" />
</EntityType>
<Association Name="fk_raz">
<End Role="raz_odjel" Type="Self.raz_odjel" Multiplicity="0..1" />
<End Role="ucenik" Type="Self.ucenik" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="raz_odjel">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="ucenik">
<PropertyRef Name="raz_id" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="razrediEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="raz_odjel" EntityType="Self.raz_odjel" />
<EntitySet Name="ucenik" EntityType="Self.ucenik" />
<AssociationSet Name="fk_raz" Association="Self.fk_raz">
<End Role="raz_odjel" EntitySet="raz_odjel" />
<End Role="ucenik" EntitySet="ucenik" />
</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="razrediModelStoreContainer" CdmEntityContainer="razrediEntities">
<EntitySetMapping Name="raz_odjel">
<EntityTypeMapping TypeName="razrediModel.raz_odjel">
<MappingFragment StoreEntitySet="raz_odjel">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="odjel" ColumnName="odjel" />
<ScalarProperty Name="nastavnik" ColumnName="nastavnik" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="ucenik">
<EntityTypeMapping TypeName="razrediModel.ucenik">
<MappingFragment StoreEntitySet="ucenik">
<ScalarProperty Name="id" ColumnName="id" />
<ScalarProperty Name="ime" ColumnName="ime" />
<ScalarProperty Name="prezime" ColumnName="prezime" />
<ScalarProperty Name="oib" ColumnName="oib" />
<ScalarProperty Name="raz_id" ColumnName="raz_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>