-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMedilabModel.edmx
215 lines (215 loc) · 11.8 KB
/
MedilabModel.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
<?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="MedicinaModel.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="Novedad">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="FechaPublicacion" Type="datetime" />
<Property Name="IdTemplate" Type="int" Nullable="false" />
<Property Name="IdUser" Type="int" />
</EntityType>
<EntityType Name="Template">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Nombre" Type="nvarchar" MaxLength="100" Nullable="false" />
<Property Name="Content" Type="nvarchar(max)" Nullable="false" />
<Property Name="Title" Type="nvarchar" MaxLength="100" />
<Property Name="Msg" Type="nvarchar" MaxLength="100" />
</EntityType>
<EntityType Name="Usuario">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="int" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="Username" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Password" Type="nvarchar(max)" Nullable="false" />
<Property Name="RegDate" Type="datetime" Nullable="false" />
<Property Name="Email" Type="nvarchar" MaxLength="50" Nullable="false" />
<Property Name="Rol" Type="int" Nullable="false" />
<Property Name="Estado" Type="int" Nullable="false" />
</EntityType>
<Association Name="FK__Novedad__IdTempl__571DF1D5">
<End Role="Template" Type="Self.Template" Multiplicity="1" />
<End Role="Novedad" Type="Self.Novedad" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Template">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="Novedad">
<PropertyRef Name="IdTemplate" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK__Novedad__IdUser__5812160E">
<End Role="Usuario" Type="Self.Usuario" Multiplicity="0..1" />
<End Role="Novedad" Type="Self.Novedad" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Usuario">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="Novedad">
<PropertyRef Name="IdUser" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityContainer Name="MedicinaModelStoreContainer">
<EntitySet Name="Novedad" EntityType="Self.Novedad" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Template" EntityType="Self.Template" Schema="dbo" store:Type="Tables" />
<EntitySet Name="Usuario" EntityType="Self.Usuario" Schema="dbo" store:Type="Tables" />
<AssociationSet Name="FK__Novedad__IdTempl__571DF1D5" Association="Self.FK__Novedad__IdTempl__571DF1D5">
<End Role="Template" EntitySet="Template" />
<End Role="Novedad" EntitySet="Novedad" />
</AssociationSet>
<AssociationSet Name="FK__Novedad__IdUser__5812160E" Association="Self.FK__Novedad__IdUser__5812160E">
<End Role="Usuario" EntitySet="Usuario" />
<End Role="Novedad" EntitySet="Novedad" />
</AssociationSet>
</EntityContainer>
</Schema></edmx:StorageModels>
<!-- CSDL content -->
<edmx:ConceptualModels>
<Schema Namespace="MedicinaModel" 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="MedicinaEntities" annotation:LazyLoadingEnabled="true">
<EntitySet Name="Novedad" EntityType="MedicinaModel.Novedad" />
<EntitySet Name="Usuario" EntityType="MedicinaModel.Usuario" />
<AssociationSet Name="FK__Novedad__IdUser__5812160E" Association="MedicinaModel.FK__Novedad__IdUser__5812160E">
<End Role="Usuario" EntitySet="Usuario" />
<End Role="Novedad" EntitySet="Novedad" />
</AssociationSet>
<EntitySet Name="Template" EntityType="MedicinaModel.Template" />
<AssociationSet Name="FK__Novedad__IdTempl__571DF1D5" Association="MedicinaModel.FK__Novedad__IdTempl__571DF1D5">
<End Role="Template" EntitySet="Template" />
<End Role="Novedad" EntitySet="Novedad" />
</AssociationSet>
</EntityContainer>
<EntityType Name="Novedad">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="FechaPublicacion" Type="DateTime" Precision="3" />
<Property Name="IdTemplate" Type="Int32" Nullable="false" />
<Property Name="IdUser" Type="Int32" />
<NavigationProperty Name="Usuario" Relationship="MedicinaModel.FK__Novedad__IdUser__5812160E" FromRole="Novedad" ToRole="Usuario" />
<NavigationProperty Name="Template" Relationship="MedicinaModel.FK__Novedad__IdTempl__571DF1D5" FromRole="Novedad" ToRole="Template" />
</EntityType>
<EntityType Name="Usuario">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Username" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="Password" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="RegDate" Type="DateTime" Nullable="false" Precision="3" />
<Property Name="Email" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Name="Rol" Type="Int32" Nullable="false" />
<Property Name="Estado" Type="Int32" Nullable="false" />
<NavigationProperty Name="Novedad" Relationship="MedicinaModel.FK__Novedad__IdUser__5812160E" FromRole="Usuario" ToRole="Novedad" />
</EntityType>
<Association Name="FK__Novedad__IdUser__5812160E">
<End Type="MedicinaModel.Usuario" Role="Usuario" Multiplicity="0..1" />
<End Type="MedicinaModel.Novedad" Role="Novedad" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Usuario">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="Novedad">
<PropertyRef Name="IdUser" />
</Dependent>
</ReferentialConstraint>
</Association>
<EntityType Name="Template">
<Key>
<PropertyRef Name="Id" />
</Key>
<Property Name="Id" Type="Int32" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="Nombre" Type="String" Nullable="false" MaxLength="100" FixedLength="false" Unicode="true" />
<Property Name="Content" Type="String" Nullable="false" MaxLength="Max" FixedLength="false" Unicode="true" />
<Property Name="Title" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
<Property Name="Msg" Type="String" MaxLength="100" FixedLength="false" Unicode="true" />
<NavigationProperty Name="Novedad" Relationship="MedicinaModel.FK__Novedad__IdTempl__571DF1D5" FromRole="Template" ToRole="Novedad" />
</EntityType>
<Association Name="FK__Novedad__IdTempl__571DF1D5">
<End Type="MedicinaModel.Template" Role="Template" Multiplicity="1" />
<End Type="MedicinaModel.Novedad" Role="Novedad" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="Template">
<PropertyRef Name="Id" />
</Principal>
<Dependent Role="Novedad">
<PropertyRef Name="IdTemplate" />
</Dependent>
</ReferentialConstraint>
</Association>
</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="MedicinaModelStoreContainer" CdmEntityContainer="MedicinaEntities">
<EntitySetMapping Name="Novedad">
<EntityTypeMapping TypeName="MedicinaModel.Novedad">
<MappingFragment StoreEntitySet="Novedad">
<ScalarProperty Name="IdUser" ColumnName="IdUser" />
<ScalarProperty Name="IdTemplate" ColumnName="IdTemplate" />
<ScalarProperty Name="FechaPublicacion" ColumnName="FechaPublicacion" />
<ScalarProperty Name="Id" ColumnName="Id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Usuario">
<EntityTypeMapping TypeName="MedicinaModel.Usuario">
<MappingFragment StoreEntitySet="Usuario">
<ScalarProperty Name="Estado" ColumnName="Estado" />
<ScalarProperty Name="Rol" ColumnName="Rol" />
<ScalarProperty Name="Email" ColumnName="Email" />
<ScalarProperty Name="RegDate" ColumnName="RegDate" />
<ScalarProperty Name="Password" ColumnName="Password" />
<ScalarProperty Name="Username" ColumnName="Username" />
<ScalarProperty Name="Id" ColumnName="Id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="Template">
<EntityTypeMapping TypeName="MedicinaModel.Template">
<MappingFragment StoreEntitySet="Template">
<ScalarProperty Name="Msg" ColumnName="Msg" />
<ScalarProperty Name="Title" ColumnName="Title" />
<ScalarProperty Name="Content" ColumnName="Content" />
<ScalarProperty Name="Nombre" ColumnName="Nombre" />
<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="Ninguno" />
</DesignerInfoPropertySet>
</Options>
<!-- Diagram content (shape and connector positions) -->
<Diagrams></Diagrams>
</Designer>
</edmx:Edmx>