cambios para multi url y generica
This commit is contained in:
13
bdHerramientaCACOA/db/urlspermitidas.cs
Normal file
13
bdHerramientaCACOA/db/urlspermitidas.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace bdHerramientaCACOA.db;
|
||||
|
||||
public partial class urlspermitidas
|
||||
{
|
||||
public int idUrlsPermitidas { get; set; }
|
||||
|
||||
public string? descripcion { get; set; }
|
||||
|
||||
public string url { get; set; } = null!;
|
||||
}
|
||||
@@ -52,6 +52,8 @@ public partial class herramientascacoaContext : DbContext
|
||||
|
||||
public virtual DbSet<tipoproyectos> tipoproyectos { get; set; }
|
||||
|
||||
public virtual DbSet<urlspermitidas> urlspermitidas { get; set; }
|
||||
|
||||
public virtual DbSet<usuarios> usuarios { get; set; }
|
||||
|
||||
public virtual DbSet<v_tipoproyecto_documentacion> v_tipoproyecto_documentacion { get; set; }
|
||||
@@ -238,6 +240,8 @@ public partial class herramientascacoaContext : DbContext
|
||||
|
||||
entity.HasIndex(e => e.idTipo, "IX_FK_fichero_tipo");
|
||||
|
||||
entity.HasIndex(e => e.NombreFichero, "NombreFichero");
|
||||
|
||||
entity.HasIndex(e => e.idFichero, "idFichero").IsUnique();
|
||||
|
||||
entity.Property(e => e.idFichero).HasColumnType("int(11)");
|
||||
@@ -397,6 +401,15 @@ public partial class herramientascacoaContext : DbContext
|
||||
.HasConstraintName("FK_tipoproyectos_enumeraciones");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<urlspermitidas>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idUrlsPermitidas).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.idUrlsPermitidas).HasColumnType("int(11)");
|
||||
entity.Property(e => e.descripcion).HasMaxLength(45);
|
||||
entity.Property(e => e.url).HasMaxLength(250);
|
||||
});
|
||||
|
||||
modelBuilder.Entity<usuarios>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.idUsuario).HasName("PRIMARY");
|
||||
|
||||
@@ -4,15 +4,18 @@
|
||||
"ContextNamespace": null,
|
||||
"FilterSchemas": false,
|
||||
"IncludeConnectionString": false,
|
||||
"MinimumProductVersion": "2.6.1080",
|
||||
"IrregularWords": null,
|
||||
"MinimumProductVersion": "2.6.1382",
|
||||
"ModelNamespace": null,
|
||||
"OutputContextPath": "dbcontext",
|
||||
"OutputPath": "db",
|
||||
"PluralRules": null,
|
||||
"PreserveCasingWithRegex": true,
|
||||
"ProjectRootNamespace": "bdHerramientaCACOA",
|
||||
"Schemas": null,
|
||||
"SelectedHandlebarsLanguage": 2,
|
||||
"SelectedToBeGenerated": 0,
|
||||
"SingularRules": null,
|
||||
"T4TemplatePath": null,
|
||||
"Tables": [
|
||||
{
|
||||
@@ -95,6 +98,10 @@
|
||||
"Name": "tipoproyectos",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "urlspermitidas",
|
||||
"ObjectType": 0
|
||||
},
|
||||
{
|
||||
"Name": "usuarios",
|
||||
"ObjectType": 0
|
||||
@@ -130,5 +137,6 @@
|
||||
"UseSchemaNamespaces": false,
|
||||
"UseSpatial": false,
|
||||
"UseT4": true,
|
||||
"UseT4Split": false
|
||||
"UseT4Split": false,
|
||||
"UseTypedTvpParameters": true
|
||||
}
|
||||
Reference in New Issue
Block a user