feat: terminado primer test del form crear inquilino
Signed-off-by: fede <federico.nicolas.polidoro@gmail.com>
This commit is contained in:
@@ -42,7 +42,6 @@ public partial class AlquilaFacilContext : DbContext
|
||||
public virtual DbSet<Venta> Ventas { get; set; }
|
||||
|
||||
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
|
||||
#warning To protect potentially sensitive information in your connection string, you should move it out of source code. You can avoid scaffolding the connection string by using the Name= syntax to read it from configuration - see https://go.microsoft.com/fwlink/?linkid=2131148. For more guidance on storing connection strings, see https://go.microsoft.com/fwlink/?LinkId=723263.
|
||||
=> optionsBuilder.UseMySQL("Server=fedesrv.ddns.net;Port=30006;Database=AlquilaFacil;Uid=AlquilaFacil;Pwd=.n@9c2ve*0,b1ETv].Kipa/~pR~V;Connection Timeout=5;SslMode=none");
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
@@ -303,7 +302,7 @@ public partial class AlquilaFacilContext : DbContext
|
||||
entity.Property(e => e.id).HasColumnType("int(11)");
|
||||
entity.Property(e => e.contraseña).HasMaxLength(128);
|
||||
entity.Property(e => e.email).HasMaxLength(50);
|
||||
entity.Property(e => e.token).HasColumnType("json");
|
||||
entity.Property(e => e.token).HasColumnType("text");
|
||||
|
||||
entity.HasMany(d => d.idgrupos).WithMany(p => p.idusuarios)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
namespace Entidades.Dto;
|
||||
|
||||
public class CrearClienteDto {
|
||||
public Cliente Cliente { get; set; } = new();
|
||||
public Usuario Usuario { get; set; } = new();
|
||||
public long dni { get; set; }
|
||||
public string nombre { get; set; } = null!;
|
||||
public string apellido { get; set; } = null!;
|
||||
public string domicilio { get; set; } = null!;
|
||||
public string celular { get; set; } = null!;
|
||||
public string email { get; set; } = null!;
|
||||
public string contraseña { get; set; } = null!;
|
||||
}
|
||||
@@ -11,7 +11,7 @@ public partial class Usuario
|
||||
|
||||
public byte[] contraseña { get; set; } = null!;
|
||||
|
||||
public string token { get; set; } = null!;
|
||||
public string? token { get; set; }
|
||||
|
||||
public virtual ICollection<Cliente> Clientes { get; set; } = new List<Cliente>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user