|
|
@@ -12,9 +12,34 @@
|
|
12
|
12
|
<Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
13
|
13
|
<Property Name="my_string" Type="varchar" MaxLength="50" Nullable="false" />
|
|
14
|
14
|
<Property Name="my_int" Type="int" Nullable="false" />
|
|
|
15
|
+ <Property Name="text" Type="bigint" Nullable="false" />
|
|
15
|
16
|
</EntityType>
|
|
|
17
|
+ <EntityType Name="T_Text">
|
|
|
18
|
+ <Key>
|
|
|
19
|
+ <PropertyRef Name="id" />
|
|
|
20
|
+ </Key>
|
|
|
21
|
+ <Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
|
|
|
22
|
+ <Property Name="text" Type="varchar" MaxLength="50" Nullable="false" />
|
|
|
23
|
+ </EntityType>
|
|
|
24
|
+ <Association Name="FK_T_SqlManager_T_Text">
|
|
|
25
|
+ <End Role="T_Text" Type="Self.T_Text" Multiplicity="1" />
|
|
|
26
|
+ <End Role="T_SqlManager" Type="Self.T_SqlManager" Multiplicity="*" />
|
|
|
27
|
+ <ReferentialConstraint>
|
|
|
28
|
+ <Principal Role="T_Text">
|
|
|
29
|
+ <PropertyRef Name="id" />
|
|
|
30
|
+ </Principal>
|
|
|
31
|
+ <Dependent Role="T_SqlManager">
|
|
|
32
|
+ <PropertyRef Name="text" />
|
|
|
33
|
+ </Dependent>
|
|
|
34
|
+ </ReferentialConstraint>
|
|
|
35
|
+ </Association>
|
|
16
|
36
|
<EntityContainer Name="ModelStoreContainer">
|
|
17
|
37
|
<EntitySet Name="T_SqlManager" EntityType="Self.T_SqlManager" Schema="dbo" store:Type="Tables" />
|
|
|
38
|
+ <EntitySet Name="T_Text" EntityType="Self.T_Text" Schema="dbo" store:Type="Tables" />
|
|
|
39
|
+ <AssociationSet Name="FK_T_SqlManager_T_Text" Association="Self.FK_T_SqlManager_T_Text">
|
|
|
40
|
+ <End Role="T_Text" EntitySet="T_Text" />
|
|
|
41
|
+ <End Role="T_SqlManager" EntitySet="T_SqlManager" />
|
|
|
42
|
+ </AssociationSet>
|
|
18
|
43
|
</EntityContainer>
|
|
19
|
44
|
</Schema></edmx:StorageModels>
|
|
20
|
45
|
<!-- CSDL content -->
|
|
|
@@ -22,6 +47,11 @@
|
|
22
|
47
|
<Schema Namespace="Model" Alias="Self" annotation:UseStrongSpatialTypes="false" xmlns:annotation="http://schemas.microsoft.com/ado/2009/02/edm/annotation" xmlns="http://schemas.microsoft.com/ado/2009/11/edm">
|
|
23
|
48
|
<EntityContainer Name="SqlServerManagerEntities" annotation:LazyLoadingEnabled="true">
|
|
24
|
49
|
<EntitySet Name="T_SqlManager" EntityType="Model.T_SqlManager" />
|
|
|
50
|
+ <EntitySet Name="T_Text" EntityType="Model.T_Text" />
|
|
|
51
|
+ <AssociationSet Name="FK_T_SqlManager_T_Text" Association="Model.FK_T_SqlManager_T_Text">
|
|
|
52
|
+ <End Role="T_Text" EntitySet="T_Text" />
|
|
|
53
|
+ <End Role="T_SqlManager" EntitySet="T_SqlManager" />
|
|
|
54
|
+ </AssociationSet>
|
|
25
|
55
|
</EntityContainer>
|
|
26
|
56
|
<EntityType Name="T_SqlManager">
|
|
27
|
57
|
<Key>
|
|
|
@@ -30,7 +60,29 @@
|
|
30
|
60
|
<Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
31
|
61
|
<Property Name="my_string" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
32
|
62
|
<Property Name="my_int" Type="Int32" Nullable="false" />
|
|
|
63
|
+ <Property Name="text" Type="Int64" Nullable="false" />
|
|
|
64
|
+ <NavigationProperty Name="T_Text" Relationship="Model.FK_T_SqlManager_T_Text" FromRole="T_SqlManager" ToRole="T_Text" />
|
|
|
65
|
+ </EntityType>
|
|
|
66
|
+ <EntityType Name="T_Text">
|
|
|
67
|
+ <Key>
|
|
|
68
|
+ <PropertyRef Name="id" />
|
|
|
69
|
+ </Key>
|
|
|
70
|
+ <Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
|
|
|
71
|
+ <Property Name="text" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
|
|
|
72
|
+ <NavigationProperty Name="T_SqlManager" Relationship="Model.FK_T_SqlManager_T_Text" FromRole="T_Text" ToRole="T_SqlManager" />
|
|
33
|
73
|
</EntityType>
|
|
|
74
|
+ <Association Name="FK_T_SqlManager_T_Text">
|
|
|
75
|
+ <End Type="Model.T_Text" Role="T_Text" Multiplicity="1" />
|
|
|
76
|
+ <End Type="Model.T_SqlManager" Role="T_SqlManager" Multiplicity="*" />
|
|
|
77
|
+ <ReferentialConstraint>
|
|
|
78
|
+ <Principal Role="T_Text">
|
|
|
79
|
+ <PropertyRef Name="id" />
|
|
|
80
|
+ </Principal>
|
|
|
81
|
+ <Dependent Role="T_SqlManager">
|
|
|
82
|
+ <PropertyRef Name="text" />
|
|
|
83
|
+ </Dependent>
|
|
|
84
|
+ </ReferentialConstraint>
|
|
|
85
|
+ </Association>
|
|
34
|
86
|
</Schema>
|
|
35
|
87
|
</edmx:ConceptualModels>
|
|
36
|
88
|
<!-- C-S mapping content -->
|
|
|
@@ -40,12 +92,21 @@
|
|
40
|
92
|
<EntitySetMapping Name="T_SqlManager">
|
|
41
|
93
|
<EntityTypeMapping TypeName="Model.T_SqlManager">
|
|
42
|
94
|
<MappingFragment StoreEntitySet="T_SqlManager">
|
|
|
95
|
+ <ScalarProperty Name="text" ColumnName="text" />
|
|
43
|
96
|
<ScalarProperty Name="my_int" ColumnName="my_int" />
|
|
44
|
97
|
<ScalarProperty Name="my_string" ColumnName="my_string" />
|
|
45
|
98
|
<ScalarProperty Name="id" ColumnName="id" />
|
|
46
|
99
|
</MappingFragment>
|
|
47
|
100
|
</EntityTypeMapping>
|
|
48
|
101
|
</EntitySetMapping>
|
|
|
102
|
+ <EntitySetMapping Name="T_Text">
|
|
|
103
|
+ <EntityTypeMapping TypeName="Model.T_Text">
|
|
|
104
|
+ <MappingFragment StoreEntitySet="T_Text">
|
|
|
105
|
+ <ScalarProperty Name="text" ColumnName="text" />
|
|
|
106
|
+ <ScalarProperty Name="id" ColumnName="id" />
|
|
|
107
|
+ </MappingFragment>
|
|
|
108
|
+ </EntityTypeMapping>
|
|
|
109
|
+ </EntitySetMapping>
|
|
49
|
110
|
</EntityContainerMapping>
|
|
50
|
111
|
</Mapping>
|
|
51
|
112
|
</edmx:Mappings>
|