modificacion diseño bbdd

factura-e/firmas-e-modificacion-edmx
Gerardo 2023-08-03 12:27:57 +02:00
parent e21308ed69
commit d9a77d2672
3 changed files with 82 additions and 10 deletions

View File

@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8"?>
<ClassDiagram />

View File

@ -1,10 +1,10 @@
// La generación de código T4 está habilitada para el modelo 'C:\Proyectos\Visual Studio 2015\Projects\Exferia_Librerias_Proyectos\Exferia_EntityFramework\Exferia_EntityFramework\EF_BaseDatos.edmx'. // T4 code generation is enabled for model 'D:\desa\Exferia\Exferia\Exferia_EntityFramework\Exferia_EntityFramework\EF_BaseDatos.edmx'.
// Para habilitar la generación de código heredada, cambie el valor de la propiedad del diseñador 'Estrategia de generación de código' // To enable legacy code generation, change the value of the 'Code Generation Strategy' designer
// por 'ObjectContext heredado'. Esta propiedad está disponible en la ventana Propiedades cuando se abre // property to 'Legacy ObjectContext'. This property is available in the Properties Window when the model
// el modelo en el diseñador. // is open in the designer.
// Si no se ha generado ninguna clase de contexto y de entidad, puede que haya creado un modelo vacío pero // If no context and entity classes have been generated, it may be because you created an empty model but
// no haya elegido todavía la versión de Entity Framework que se va a usar. Para generar una clase de contexto y clases de entidad // have not yet chosen which version of Entity Framework to use. To generate a context class and entity
// para el modelo, abra el modelo en el diseñador, haga clic con el botón secundario en la superficie del diseñador y // classes for your model, open the model in the designer, right-click on the designer surface, and
// seleccione 'Actualizar modelo desde base de datos...', 'Generar base de datos desde modelo...' o 'Agregar elemento de generación // select 'Update Model from Database...', 'Generate Database from Model...', or 'Add Code Generation
// de código...'. // Item...'.

View File

@ -2006,6 +2006,17 @@
<Property Name="opcion" Type="varchar" MaxLength="100" Nullable="false" /> <Property Name="opcion" Type="varchar" MaxLength="100" Nullable="false" />
<Property Name="nombreCampoCodigo" Type="varchar" MaxLength="50" Nullable="false" /> <Property Name="nombreCampoCodigo" Type="varchar" MaxLength="50" Nullable="false" />
</EntityType> </EntityType>
<EntityType Name="GEN_Firmas_Electronicas">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="bigint" StoreGeneratedPattern="Identity" Nullable="false" />
<Property Name="codigo" Type="varchar" MaxLength="10" Nullable="false" />
<Property Name="descripcion" Type="varchar" MaxLength="50" Nullable="false" />
<Property Name="fecha_fin" Type="datetime" />
<Property Name="idEmpresa" Type="bigint" Nullable="false"/>
<Property Name="text_perm" Type="text"/>
</EntityType>
<EntityType Name="GEN_Configuracion_Informes"> <EntityType Name="GEN_Configuracion_Informes">
<Key> <Key>
<PropertyRef Name="id" /> <PropertyRef Name="id" />
@ -12451,7 +12462,19 @@
</Dependent> </Dependent>
</ReferentialConstraint> </ReferentialConstraint>
</Association> </Association>
<Association Name="FK_GEN_Control_GEN_PerfilesFuncionalidad"> <Association Name="FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" Type="Self.GEN_Empresas" Multiplicity="1" />
<End Role="GEN_Firmas_Electronicas" Type="Self.GEN_Firmas_Electronicas" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="GEN_Empresas">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="GEN_Firmas_Electronicas">
<PropertyRef Name="idEmpresa" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_GEN_Control_GEN_PerfilesFuncionalidad">
<End Role="GEN_PerfilesFuncionalidad" Type="Self.GEN_PerfilesFuncionalidad" Multiplicity="1" /> <End Role="GEN_PerfilesFuncionalidad" Type="Self.GEN_PerfilesFuncionalidad" Multiplicity="1" />
<End Role="GEN_Control" Type="Self.GEN_Control" Multiplicity="*" /> <End Role="GEN_Control" Type="Self.GEN_Control" Multiplicity="*" />
<ReferentialConstraint> <ReferentialConstraint>
@ -26653,6 +26676,7 @@
<EntitySet Name="GEN_Almacenes" EntityType="Self.GEN_Almacenes" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Almacenes" EntityType="Self.GEN_Almacenes" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_CampoCodigo" EntityType="Self.GEN_Configuracion_CampoCodigo" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_CampoCodigo" EntityType="Self.GEN_Configuracion_CampoCodigo" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_Informes" EntityType="Self.GEN_Configuracion_Informes" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_Informes" EntityType="Self.GEN_Configuracion_Informes" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Firmas_Electronicas" EntityType="Self.GEN_Firmas_Electronicas" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Configuracion_SW_Sigma" EntityType="Self.GEN_Configuracion_SW_Sigma" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Configuracion_SW_Sigma" EntityType="Self.GEN_Configuracion_SW_Sigma" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_ConfiguracionesEmails" EntityType="Self.GEN_ConfiguracionesEmails" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_ConfiguracionesEmails" EntityType="Self.GEN_ConfiguracionesEmails" Schema="dbo" store:Type="Tables" />
<EntitySet Name="GEN_Control" EntityType="Self.GEN_Control" Schema="dbo" store:Type="Tables" /> <EntitySet Name="GEN_Control" EntityType="Self.GEN_Control" Schema="dbo" store:Type="Tables" />
@ -28478,6 +28502,10 @@
<End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" /> <End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" />
<End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" /> <End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" />
</AssociationSet> </AssociationSet>
<AssociationSet Name="FK_GEN_Firmas_Electronicas_GEN_Empresas" Association="Self.FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
<End Role="GEN_Firmas_Electronicas" EntitySet="GEN_Firmas_Electronicas" />
</AssociationSet>
<AssociationSet Name="FK_GEN_Control_GEN_PerfilesFuncionalidad" Association="Self.FK_GEN_Control_GEN_PerfilesFuncionalidad"> <AssociationSet Name="FK_GEN_Control_GEN_PerfilesFuncionalidad" Association="Self.FK_GEN_Control_GEN_PerfilesFuncionalidad">
<End Role="GEN_PerfilesFuncionalidad" EntitySet="GEN_PerfilesFuncionalidad" /> <End Role="GEN_PerfilesFuncionalidad" EntitySet="GEN_PerfilesFuncionalidad" />
<End Role="GEN_Control" EntitySet="GEN_Control" /> <End Role="GEN_Control" EntitySet="GEN_Control" />
@ -37372,6 +37400,7 @@
<End Role="EPD_Procedimientos" EntitySet="EPD_Procedimientos" /> <End Role="EPD_Procedimientos" EntitySet="EPD_Procedimientos" />
</AssociationSet> </AssociationSet>
<EntitySet Name="GEN_Configuracion_Informes" EntityType="SigmaERP2017Model.GEN_Configuracion_Informes" /> <EntitySet Name="GEN_Configuracion_Informes" EntityType="SigmaERP2017Model.GEN_Configuracion_Informes" />
<EntitySet Name="GEN_Firmas_Electronicas" EntityType="SigmaERP2017Model.GEN_Firmas_Electronicas" />
<EntitySet Name="MYT_Configuracion_Informes" EntityType="SigmaERP2017Model.MYT_Configuracion_Informes" /> <EntitySet Name="MYT_Configuracion_Informes" EntityType="SigmaERP2017Model.MYT_Configuracion_Informes" />
<EntitySet Name="CTA_DiarioCabecera" EntityType="SigmaERP2017Model.CTA_DiarioCabecera" /> <EntitySet Name="CTA_DiarioCabecera" EntityType="SigmaERP2017Model.CTA_DiarioCabecera" />
<AssociationSet Name="FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros" Association="SigmaERP2017Model.FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros"> <AssociationSet Name="FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros" Association="SigmaERP2017Model.FK_CTA_DiarioCabecera_CTA_PredefinidosFicheros">
@ -38793,6 +38822,10 @@
<AssociationSet Name="FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" Association="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa"> <AssociationSet Name="FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" Association="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa">
<End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" /> <End Role="GEN_EjerciciosActivos_Empresa" EntitySet="GEN_EjerciciosActivos_Empresa" />
<End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" /> <End Role="GEN_Configuracion_Informes" EntitySet="GEN_Configuracion_Informes" />
</AssociationSet>
<AssociationSet Name="FK_GEN_Firmas_Electronicas_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
<End Role="GEN_Firmas_Electronicas" EntitySet="GEN_Firmas_Electronicas" />
</AssociationSet> </AssociationSet>
<AssociationSet Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas"> <AssociationSet Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas" Association="SigmaERP2017Model.FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas">
<End Role="GEN_Empresas" EntitySet="GEN_Empresas" /> <End Role="GEN_Empresas" EntitySet="GEN_Empresas" />
@ -50392,6 +50425,7 @@
<Property Name="fechaBorrado" Type="DateTime" Precision="3" /> <Property Name="fechaBorrado" Type="DateTime" Precision="3" />
<Property Name="NRBE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" /> <Property Name="NRBE" Type="String" MaxLength="20" FixedLength="false" Unicode="false" />
<Property Name="permiteCobrarAlbaran" Type="Boolean" /> <Property Name="permiteCobrarAlbaran" Type="Boolean" />
<NavigationProperty Name="GEN_Firmas_Electronicas" Relationship="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas" FromRole="GEN_Empresas" ToRole="GEN_Firmas_Electronicas" />
<NavigationProperty Name="CRM_ClientesPotenciales" Relationship="SigmaERP2017Model.FK_CRM_ClientesPotenciales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_ClientesPotenciales" /> <NavigationProperty Name="CRM_ClientesPotenciales" Relationship="SigmaERP2017Model.FK_CRM_ClientesPotenciales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_ClientesPotenciales" />
<NavigationProperty Name="CRM_Terminales" Relationship="SigmaERP2017Model.FK_CRM_Terminales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_Terminales" /> <NavigationProperty Name="CRM_Terminales" Relationship="SigmaERP2017Model.FK_CRM_Terminales_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CRM_Terminales" />
<NavigationProperty Name="CTA_AmortizacionesCabecera" Relationship="SigmaERP2017Model.FK_CTA_AmortizacionesCabecera_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CTA_AmortizacionesCabecera" /> <NavigationProperty Name="CTA_AmortizacionesCabecera" Relationship="SigmaERP2017Model.FK_CTA_AmortizacionesCabecera_GEN_Empresas" FromRole="GEN_Empresas" ToRole="CTA_AmortizacionesCabecera" />
@ -57030,6 +57064,18 @@
<Property Name="venta_Factura_Informe_TextoFinal" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" /> <Property Name="venta_Factura_Informe_TextoFinal" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<NavigationProperty Name="GEN_EjerciciosActivos_Empresa" Relationship="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" FromRole="GEN_Configuracion_Informes" ToRole="GEN_EjerciciosActivos_Empresa" /> <NavigationProperty Name="GEN_EjerciciosActivos_Empresa" Relationship="SigmaERP2017Model.FK_GEN_Configuracion_Informes_GEN_EjerciciosActivos_Empresa" FromRole="GEN_Configuracion_Informes" ToRole="GEN_EjerciciosActivos_Empresa" />
</EntityType> </EntityType>
<EntityType Name="GEN_Firmas_Electronicas">
<Key>
<PropertyRef Name="id" />
</Key>
<Property Name="id" Type="Int64" Nullable="false" annotation:StoreGeneratedPattern="Identity" />
<Property Name="codigo" Type="String" Nullable="false" MaxLength="10" FixedLength="false" Unicode="false" />
<Property Name="descripcion" Type="String" Nullable="false" MaxLength="50" FixedLength="false" Unicode="false" />
<Property Name="idEmpresa" Type="Int64" Nullable="false" />
<Property Name="fecha_fin" Type="DateTime" Precision="3" />
<Property Name="text_perm" Type="String" MaxLength="Max" FixedLength="false" Unicode="false" />
<NavigationProperty Name="GEN_Empresas" Relationship="SigmaERP2017Model.FK_GEN_Firmas_Electronicas_GEN_Empresas" FromRole="GEN_Firmas_Electronicas" ToRole="GEN_Empresas" />
</EntityType>
<EntityType Name="MYT_Configuracion_Informes"> <EntityType Name="MYT_Configuracion_Informes">
<Key> <Key>
<PropertyRef Name="id" /> <PropertyRef Name="id" />
@ -62995,6 +63041,18 @@
</Dependent> </Dependent>
</ReferentialConstraint> </ReferentialConstraint>
</Association> </Association>
<Association Name="FK_GEN_Firmas_Electronicas_GEN_Empresas">
<End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" />
<End Type="SigmaERP2017Model.GEN_Firmas_Electronicas" Role="GEN_Firmas_Electronicas" Multiplicity="*" />
<ReferentialConstraint>
<Principal Role="GEN_Empresas">
<PropertyRef Name="id" />
</Principal>
<Dependent Role="GEN_Firmas_Electronicas">
<PropertyRef Name="idEmpresa" />
</Dependent>
</ReferentialConstraint>
</Association>
<Association Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas"> <Association Name="FK_GEN_EjerciciosActivos_Empresa_GEN_Empresas">
<End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" /> <End Type="SigmaERP2017Model.GEN_Empresas" Role="GEN_Empresas" Multiplicity="1" />
<End Type="SigmaERP2017Model.GEN_EjerciciosActivos_Empresa" Role="GEN_EjerciciosActivos_Empresa" Multiplicity="*" /> <End Type="SigmaERP2017Model.GEN_EjerciciosActivos_Empresa" Role="GEN_EjerciciosActivos_Empresa" Multiplicity="*" />
@ -74646,6 +74704,18 @@
</MappingFragment> </MappingFragment>
</EntityTypeMapping> </EntityTypeMapping>
</EntitySetMapping> </EntitySetMapping>
<EntitySetMapping Name="GEN_Firmas_Electronicas">
<EntityTypeMapping TypeName="SigmaERP2017Model.GEN_Firmas_Electronicas">
<MappingFragment StoreEntitySet="GEN_Firmas_Electronicas">
<ScalarProperty Name="text_perm" ColumnName="text_perm" />
<ScalarProperty Name="idEmpresa" ColumnName="idEmpresa" />
<ScalarProperty Name="fecha_fin" ColumnName="fecha_fin" />
<ScalarProperty Name="descripcion" ColumnName="descripcion" />
<ScalarProperty Name="codigo" ColumnName="codigo" />
<ScalarProperty Name="id" ColumnName="id" />
</MappingFragment>
</EntityTypeMapping>
</EntitySetMapping>
<EntitySetMapping Name="MYT_Configuracion_Informes"> <EntitySetMapping Name="MYT_Configuracion_Informes">
<EntityTypeMapping TypeName="SigmaERP2017Model.MYT_Configuracion_Informes"> <EntityTypeMapping TypeName="SigmaERP2017Model.MYT_Configuracion_Informes">
<MappingFragment StoreEntitySet="MYT_Configuracion_Informes"> <MappingFragment StoreEntitySet="MYT_Configuracion_Informes">