Actualzar dev #6
@@ -7,7 +7,10 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="htmx" Version="1.8.0" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.8" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="8.0.7" />
|
||||
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.8.1" />
|
||||
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="8.0.2" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
using Entidades.Dto;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Modelo;
|
||||
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
[ApiController]
|
||||
public class AccionesController: ControllerBase {
|
||||
|
||||
[HttpPost("api/acciones")]
|
||||
public IActionResult ListarAccionesPorUsuario([FromBody] LoginDto email, [FromHeader(Name = "Auth")] string Auth) {
|
||||
if (email.Email == "" || email.Email == null) return BadRequest();
|
||||
|
||||
|
||||
if (Auth == "") return Unauthorized(new { esValido = false});
|
||||
|
||||
bool esValido = RepositorioUsuarios.Singleton.CheckToken(email.Email, Auth);
|
||||
if (!esValido) return Unauthorized();
|
||||
|
||||
var Permisos = RepositorioPermisos.Singleton.ListarPermisos(email.Email);
|
||||
Response.Headers["Content-Type"] = "application/json";
|
||||
return Ok(Permisos);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
#if DEBUG
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Modelo;
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
[ApiController]
|
||||
public class GruposController: ControllerBase {
|
||||
[HttpPost("api/admin/grupos")]
|
||||
public IActionResult CrearGrupo([FromBody] AdminGrupo grupo) {
|
||||
if (String.IsNullOrEmpty(grupo.descripcion)) return BadRequest();
|
||||
|
||||
bool ret = RepositorioGrupos.Singleton.CrearGrupo(grupo.descripcion);
|
||||
return (ret) ? Ok(ret) : BadRequest();
|
||||
}
|
||||
|
||||
[HttpGet("api/admin/grupos")]
|
||||
public IActionResult ListarGrupo(){
|
||||
return Ok(RepositorioGrupos.Singleton.Listar());
|
||||
}
|
||||
}
|
||||
|
||||
public record AdminGrupo(string descripcion);
|
||||
#endif
|
||||
@@ -1,24 +0,0 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
public class HomeController : Controller
|
||||
{
|
||||
private readonly ILogger<HomeController> _logger;
|
||||
|
||||
public HomeController(ILogger<HomeController> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
public IActionResult Index()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
public IActionResult Privacy()
|
||||
{
|
||||
return View();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,41 +1,66 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.Text;
|
||||
using Entidades;
|
||||
using Entidades.Dto;
|
||||
using Modelo;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Security.Cryptography;
|
||||
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
public class InquilinoController: Controller
|
||||
[ApiController]
|
||||
public class InquilinoController: ControllerBase
|
||||
{
|
||||
public List<Entidades.Inquilino> inquilinos = new List<Entidades.Inquilino>();
|
||||
|
||||
[HttpGet("api/inquilino")]
|
||||
public IActionResult Get(){
|
||||
|
||||
var htmlbuild = new StringBuilder();
|
||||
foreach (var inquilino in inquilinos)
|
||||
{
|
||||
htmlbuild.AppendFormat("<tr><td>{0}</td><td>{1}</td><td>{2}</td><td>{3}</td></tr>",
|
||||
inquilino.Dni, inquilino.Nombre, inquilino.Apellido, inquilino.Domicilio);
|
||||
}
|
||||
return Content(htmlbuild.ToString(), "text/html");
|
||||
public IActionResult Get([FromHeader(Name = "Auth")] string Auth) {
|
||||
if (!string.IsNullOrEmpty(Auth)) return BadRequest();
|
||||
string path = Request.Path;
|
||||
|
||||
var ret = RepositorioPermisos.Singleton.CheckPermisos(Auth, path);
|
||||
if (ret == false) return BadRequest(ret);
|
||||
|
||||
var list = RepositorioInquilinos.Singleton.GetInquilinos();
|
||||
|
||||
return Ok(list);
|
||||
}
|
||||
|
||||
[HttpPost("api/inquilino")]
|
||||
public IActionResult Post([FromForm] Inquilino inq){
|
||||
if (inq == null) return BadRequest("Inquilino inválido.");
|
||||
if (inq.Dni == 0 ) return BadRequest("No se especifico dni");
|
||||
if (inq.Dni < 0 ) return BadRequest("Dni Invalido");
|
||||
public IActionResult Post([FromBody] CrearClienteDto cid) {
|
||||
|
||||
|
||||
return Redirect("/Inquilino");
|
||||
return Content($"<p>Inquilino {inq.Nombre} agregado exitosamente.</p>", "text/html");
|
||||
var ret = verificarCrearUsuario(cid);
|
||||
if (ret != "") return BadRequest(ret);
|
||||
|
||||
var cli = new Cliente {
|
||||
Dni = cid.dni,
|
||||
Nombre = cid.nombre,
|
||||
Domicilio = cid.domicilio,
|
||||
Apellido = cid.apellido,
|
||||
Celular = cid.celular,
|
||||
Email = cid.email,
|
||||
Contraseña = Encoding.UTF8.GetBytes(HacerHash(cid.contraseña))
|
||||
};
|
||||
|
||||
bool ret2 = RepositorioUsuarios.Singleton.AltaInquilino(cli);
|
||||
return (ret2) ? Ok() : BadRequest(ret);
|
||||
}
|
||||
|
||||
public IActionResult Index(){
|
||||
return View();
|
||||
}
|
||||
private string verificarCrearUsuario(CrearClienteDto cid) {
|
||||
string msg = "";
|
||||
|
||||
public IActionResult FormAdd(){
|
||||
return View();
|
||||
if (cid.email == string.Empty) msg += "Falta ingresar el email\n";
|
||||
if (cid.contraseña.Length < 8) msg += "Por lo menos 8 caracteres en la contraseña\n";
|
||||
|
||||
if (cid.apellido == string.Empty) msg += "Falta Ingresar apellido\n";
|
||||
if (cid.nombre == string.Empty) msg += "Falta Ingresar nombre\n";
|
||||
if (cid.dni <= 0) msg += "Falta Ingresar dni o elejiste un numero negativo\n";
|
||||
if (cid.celular == string.Empty) msg += "Falta Ingresar Numero de Contacto\n";
|
||||
if (cid.domicilio == string.Empty) msg += "Falta Ingresar Domicilio Legal";
|
||||
|
||||
return msg;
|
||||
}
|
||||
}
|
||||
private string HacerHash(string pass){
|
||||
var buf = SHA256.HashData(Encoding.UTF8.GetBytes(pass));
|
||||
return BitConverter.ToString(buf).Replace("-","");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,30 +1,72 @@
|
||||
using Entidades.Dto;
|
||||
using Modelo;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using System.IdentityModel.Tokens.Jwt;
|
||||
using System.Security.Claims;
|
||||
using System.Text;
|
||||
using Microsoft.IdentityModel.Tokens;
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
using Entidades.Dto;
|
||||
using Modelo;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
namespace AlquilaFacil.Controllers;
|
||||
[ApiController]
|
||||
public class LoginController: ControllerBase
|
||||
{
|
||||
[HttpPost("api/login")]
|
||||
public IActionResult Login([FromBody] LoginDto loginDto) {
|
||||
|
||||
if (loginDto.Email == String.Empty || loginDto.Contraseña == String.Empty) return Unauthorized(new {message = "Los Datos no llegaron correctamente o faltan"});
|
||||
|
||||
var usuario = RepositorioUsuarios.Singleton.CheckUsuario(loginDto);
|
||||
if (!usuario) return Unauthorized(new {message = "El usuario no existe o la contraseña es incorrecta"});
|
||||
|
||||
public class LoginController: Controller
|
||||
{
|
||||
public IActionResult Index(){
|
||||
return View();
|
||||
string tokenString = GenerarToken(loginDto);
|
||||
RepositorioUsuarios.Singleton.GuardarToken(loginDto, tokenString);
|
||||
|
||||
var cookieOptions = new CookieOptions
|
||||
{
|
||||
HttpOnly = true,
|
||||
Secure = true,
|
||||
SameSite = SameSiteMode.None,
|
||||
Path = "/Menu",
|
||||
|
||||
Expires = DateTimeOffset.UtcNow.AddHours(1)
|
||||
};
|
||||
|
||||
Response.Cookies.Append("token", tokenString, cookieOptions);
|
||||
return Ok( new {Email = loginDto.Email, Token = tokenString, Redirect = "/Menu"});
|
||||
}
|
||||
|
||||
[HttpPost("api/login/validar")]
|
||||
public IActionResult Verificar([FromBody] AccessDto request, [FromHeader(Name = "Auth")] string token){
|
||||
|
||||
if (request.Email == String.Empty || token == null ||request.Redirect == string.Empty)
|
||||
{
|
||||
return Unauthorized(new { esValido = false});
|
||||
}
|
||||
|
||||
[HttpPost("api/login")]
|
||||
public IActionResult Login([FromForm] LoginDto loginDto) {
|
||||
bool esValido = RepositorioUsuarios.Singleton.CheckToken(request.Email, token);
|
||||
if (esValido) {
|
||||
return Ok(new {esValido = esValido});
|
||||
} else {
|
||||
|
||||
var usuario = RepositorioUsuarios.Singleton.CheckUsuario(loginDto);
|
||||
if (usuario == null){
|
||||
return Content(errorAlert);
|
||||
}
|
||||
else {
|
||||
Response.Headers["HX-Redirect"] = "/Home";
|
||||
return Ok();
|
||||
}
|
||||
return Unauthorized(new {esValido = "el token no es valido"});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
private const string errorAlert = @"
|
||||
<div class='alert alert-warning alert-dismissible fade show' role='alert'>
|
||||
<strong>Error!</strong> Usuario o contraseña incorrectos.
|
||||
</div>";
|
||||
}
|
||||
private string GenerarToken(LoginDto loginDto){
|
||||
var tokenHandler = new JwtSecurityTokenHandler();
|
||||
var key = Encoding.ASCII.GetBytes("ffb2cdc15d472e41a5b626e294c45020");
|
||||
var tokenDescriptor = new SecurityTokenDescriptor
|
||||
{
|
||||
Subject = new ClaimsIdentity(new Claim[]
|
||||
{
|
||||
new Claim(ClaimTypes.Name, loginDto.Email)
|
||||
}),
|
||||
Expires = DateTime.UtcNow.AddHours(1),
|
||||
SigningCredentials = new SigningCredentials(new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature)
|
||||
};
|
||||
var token = tokenHandler.CreateToken(tokenDescriptor);
|
||||
return tokenHandler.WriteToken(token);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
#if DEBUG
|
||||
using System.Text.Json;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Modelo;
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
[ApiController]
|
||||
public class PermisosController: ControllerBase {
|
||||
[HttpPost("api/admin/permisos")]
|
||||
public IActionResult CrearPermisos([FromBody] AdminPermiso permiso) {
|
||||
if (String.IsNullOrEmpty(permiso.descripcion)) return BadRequest();
|
||||
|
||||
bool ret = RepositorioPermisos.Singleton.CrearPermiso(permiso.descripcion);
|
||||
return (ret) ? Ok(ret) : BadRequest();
|
||||
}
|
||||
}
|
||||
|
||||
public record AdminPermiso(string descripcion);
|
||||
#endif
|
||||
@@ -0,0 +1,8 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
[ApiController]
|
||||
public class PropiedadesController: ControllerBase {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
using Entidades;
|
||||
using Entidades.Dto;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Modelo;
|
||||
|
||||
namespace AlquilaFacil.Controllers;
|
||||
|
||||
[ApiController]
|
||||
public class PropietarioController: ControllerBase {
|
||||
|
||||
[HttpGet("api/propietario")]
|
||||
public IActionResult ListarPropietarios([FromHeader(Name = "Auth")] string Auth) {
|
||||
return Ok();
|
||||
}
|
||||
|
||||
[HttpPost("api/propietarios")]
|
||||
public IActionResult AltaPropietario([FromBody]CrearClienteDto Propietario,[FromHeader(Name = "Auth")] string Auth) {
|
||||
if (String.IsNullOrEmpty(Auth)) return Unauthorized();
|
||||
var validacion1 = RepositorioPermisos.Singleton.CheckPermisos(Auth, Request.Path);
|
||||
if (validacion1 == false) return Unauthorized();
|
||||
|
||||
string validacion2 = verificarCrearUsuario(Propietario);
|
||||
if (validacion2 != "") return BadRequest(validacion2);
|
||||
|
||||
var cli = new Cliente {
|
||||
Dni = Propietario.dni,
|
||||
Nombre = Propietario.nombre,
|
||||
Domicilio = Propietario.domicilio,
|
||||
Apellido = Propietario.apellido,
|
||||
Celular = Propietario.celular,
|
||||
Email = Propietario.email,
|
||||
Contraseña = Encoding.UTF8.GetBytes(HacerHash(Propietario.contraseña))
|
||||
};
|
||||
|
||||
bool ret = RepositorioUsuarios.Singleton.AltaPropietario(cli);
|
||||
return ret ?
|
||||
Ok(new {message = "Se añadio el propietario exitosamente"}) : BadRequest();
|
||||
}
|
||||
private string verificarCrearUsuario(CrearClienteDto cid) {
|
||||
string msg = "";
|
||||
|
||||
if (cid.email == string.Empty) msg += "Falta ingresar el email\n";
|
||||
if (cid.contraseña.Length < 8) msg += "Por lo menos 8 caracteres en la contraseña\n";
|
||||
|
||||
if (cid.apellido == string.Empty) msg += "Falta Ingresar apellido\n";
|
||||
if (cid.nombre == string.Empty) msg += "Falta Ingresar nombre\n";
|
||||
if (cid.dni <= 0) msg += "Falta Ingresar dni o elejiste un numero negativo\n";
|
||||
if (cid.celular == string.Empty) msg += "Falta Ingresar Numero de Contacto\n";
|
||||
if (cid.domicilio == string.Empty) msg += "Falta Ingresar Domicilio Legal";
|
||||
|
||||
return msg;
|
||||
}
|
||||
private string HacerHash(string pass){
|
||||
var buf = SHA256.HashData(Encoding.UTF8.GetBytes(pass));
|
||||
return BitConverter.ToString(buf).Replace("-","");
|
||||
}
|
||||
}
|
||||
+20
-8
@@ -1,30 +1,42 @@
|
||||
|
||||
var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Add services to the container.
|
||||
builder.Services.AddControllers();
|
||||
builder.Services.AddControllersWithViews();
|
||||
builder.Services.AddEndpointsApiExplorer();
|
||||
builder.Services.AddSwaggerGen();
|
||||
|
||||
builder.Services.AddCors(options =>
|
||||
{
|
||||
options.AddPolicy("AllowSvelteApp",
|
||||
builder =>
|
||||
{
|
||||
builder.WithOrigins("http://localhost:5173")
|
||||
.AllowAnyHeader()
|
||||
.AllowAnyMethod()
|
||||
.AllowCredentials();
|
||||
});
|
||||
});
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
// Configure the HTTP request pipeline.
|
||||
if (!app.Environment.IsDevelopment())
|
||||
if (app.Environment.IsDevelopment())
|
||||
{
|
||||
app.UseExceptionHandler("/Home/Error");
|
||||
// The default HSTS value is 30 days. You may want to change this for production scenarios, see https://aka.ms/aspnetcore-hsts.
|
||||
app.UseHsts();
|
||||
app.UseSwagger();
|
||||
app.UseSwaggerUI();
|
||||
}
|
||||
|
||||
app.UseHttpsRedirection();
|
||||
app.UseStaticFiles();
|
||||
|
||||
app.UseRouting();
|
||||
|
||||
app.UseAuthentication();
|
||||
app.UseAuthorization();
|
||||
|
||||
app.MapControllerRoute(
|
||||
name: "default",
|
||||
pattern: "{controller=Login}/{action=Index}/{id?}");
|
||||
|
||||
app.UseCors("AllowSvelteApp");
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
// Mapea los controladores a las rutas predeterminadas.
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
@{
|
||||
ViewData["Title"] = "Info";
|
||||
}
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<p>Este es un sistema hecho por Federico Polidoro Para las materias de Ing en sistemas y Trabajo de diploma.</p>
|
||||
@@ -1,36 +0,0 @@
|
||||
<h3>Alta Inquilino</h3>
|
||||
<form method="post" action="/api/inquilino ">
|
||||
<label for="Dni">Dni:</label><br>
|
||||
<input type="number" id="Dni" name="Dni" min="1" step="1" required>
|
||||
<br>
|
||||
|
||||
<label for="Cuil">Cuil:</label><br>
|
||||
<input type="number" id="Cuil" name="Cuil" min="1" step="1" required>
|
||||
<br>
|
||||
|
||||
<label for="nombre">Nombre:</label><br>
|
||||
<input type="text" id="nombre" name="nombre" required>
|
||||
<br>
|
||||
|
||||
<label for="apellido">Apellido:</label><br>
|
||||
<input type="text" id="Apellido" name="apellido" required>
|
||||
<br>
|
||||
|
||||
<label for="Domicilio">Domicilio:</label><br>
|
||||
<input type="text" id="Domicilio" name="Domicilio" required>
|
||||
<br>
|
||||
|
||||
<label for="Email">Email:</label><br>
|
||||
<input type="email" id="Email" name="Email" required>
|
||||
<br>
|
||||
|
||||
<label for="Contraseña">Contraseña:</label><br>
|
||||
<input type="text" id="Contraseña" name="Contraseña" required>
|
||||
<br>
|
||||
|
||||
<label for="Celular">Celular:</label><br>
|
||||
<input type="tel" id="Celular" name="Celular" required>
|
||||
<br>
|
||||
|
||||
<button type="submit">Agregar Inquilino</button>
|
||||
</form>
|
||||
@@ -1,5 +0,0 @@
|
||||
@model Entidades.Dto.LoginDto;
|
||||
|
||||
<div class="alert alert-danger" role="alert">
|
||||
"@Model.Usuario"
|
||||
</div>
|
||||
@@ -1,27 +0,0 @@
|
||||
@{
|
||||
ViewData["Title"] = "Login";
|
||||
}
|
||||
@{
|
||||
Layout = "_basicLayout";
|
||||
}
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="/css/_Login.css">
|
||||
<div id="logincard" class="card centered">
|
||||
<div class="card-body">
|
||||
<h5 class="card-title">Ingresar al Sistema </h5>
|
||||
<form hx-post="/api/login" hx-target="#responce" hx-swap="innerHTML">
|
||||
<label for="Usuario">Usuario</label><br>
|
||||
<input type="text" id="Usuario" name="Usuario" required>
|
||||
<br>
|
||||
|
||||
<label for="Contrasena">Contraseña</label><br>
|
||||
<input type="password" id="Contrasena" name="Contrasena" required>
|
||||
<br>
|
||||
<button type="submit">Ingresar</button>
|
||||
</form>
|
||||
<br>
|
||||
|
||||
<div id="responce"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
@@ -1,48 +0,0 @@
|
||||
/* Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
for details on configuring this project to bundle and minify static web assets. */
|
||||
|
||||
a.navbar-brand {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0077cc;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.box-shadow {
|
||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
button.accept-policy {
|
||||
font-size: 1rem;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
line-height: 60px;
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<script src="https://unpkg.com/htmx.org@2.0.2"></script>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/AlquilaFacil.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body class="bg-dark-subtle">
|
||||
@RenderBody()
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,2 +0,0 @@
|
||||
@using AlquilaFacil
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
@@ -1 +0,0 @@
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
run:
|
||||
dotnet watch run
|
||||
@@ -1,6 +0,0 @@
|
||||
.centered {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
html {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
html {
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
|
||||
box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
|
||||
}
|
||||
|
||||
html {
|
||||
position: relative;
|
||||
min-height: 100%;
|
||||
}
|
||||
|
||||
body {
|
||||
margin-bottom: 60px;
|
||||
}
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 5.3 KiB |
@@ -1,4 +0,0 @@
|
||||
// Please see documentation at https://learn.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
// for details on configuring this project to bundle and minify static web assets.
|
||||
|
||||
// Write your JavaScript code.
|
||||
@@ -1,22 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2011-2021 Twitter, Inc.
|
||||
Copyright (c) 2011-2021 The Bootstrap Authors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,427 +0,0 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||
*/
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
:root {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--bs-body-font-family);
|
||||
font-size: var(--bs-body-font-size);
|
||||
font-weight: var(--bs-body-font-weight);
|
||||
line-height: var(--bs-body-line-height);
|
||||
color: var(--bs-body-color);
|
||||
text-align: var(--bs-body-text-align);
|
||||
background-color: var(--bs-body-bg);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 1rem 0;
|
||||
color: inherit;
|
||||
background-color: currentColor;
|
||||
border: 0;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
hr:not([size]) {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
h6, h5, h4, h3, h2, h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: calc(1.375rem + 1.5vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: calc(1.325rem + 0.9vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: calc(1.3rem + 0.6vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: calc(1.275rem + 0.3vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
abbr[title],
|
||||
abbr[data-bs-original-title] {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
cursor: help;
|
||||
-webkit-text-decoration-skip-ink: none;
|
||||
text-decoration-skip-ink: none;
|
||||
}
|
||||
|
||||
address {
|
||||
margin-bottom: 1rem;
|
||||
font-style: normal;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
padding-left: 2rem;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul,
|
||||
dl {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
ol ol,
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-bottom: 0.5rem;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.875em;
|
||||
}
|
||||
|
||||
mark {
|
||||
padding: 0.2em;
|
||||
background-color: #fcf8e3;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
position: relative;
|
||||
font-size: 0.75em;
|
||||
line-height: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0d6efd;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover {
|
||||
color: #0a58ca;
|
||||
}
|
||||
|
||||
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-size: 1em;
|
||||
direction: ltr /* rtl:ignore */;
|
||||
unicode-bidi: bidi-override;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
overflow: auto;
|
||||
font-size: 0.875em;
|
||||
}
|
||||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 0.875em;
|
||||
color: #d63384;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
a > code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 0.875em;
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 1em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
img,
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
table {
|
||||
caption-side: bottom;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
caption {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
color: #6c757d;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: inherit;
|
||||
text-align: -webkit-match-parent;
|
||||
}
|
||||
|
||||
thead,
|
||||
tbody,
|
||||
tfoot,
|
||||
tr,
|
||||
td,
|
||||
th {
|
||||
border-color: inherit;
|
||||
border-style: solid;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button:focus:not(:focus-visible) {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
optgroup,
|
||||
textarea {
|
||||
margin: 0;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
[role=button] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
select {
|
||||
word-wrap: normal;
|
||||
}
|
||||
select:disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
[list]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
[type=button],
|
||||
[type=reset],
|
||||
[type=submit] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
button:not(:disabled),
|
||||
[type=button]:not(:disabled),
|
||||
[type=reset]:not(:disabled),
|
||||
[type=submit]:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
float: left;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: calc(1.275rem + 0.3vw);
|
||||
line-height: inherit;
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
legend {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
legend + * {
|
||||
clear: left;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper,
|
||||
::-webkit-datetime-edit-text,
|
||||
::-webkit-datetime-edit-minute,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-year-field {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-inner-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
[type=search] {
|
||||
outline-offset: -2px;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
/* rtl:raw:
|
||||
[type="tel"],
|
||||
[type="url"],
|
||||
[type="email"],
|
||||
[type="number"] {
|
||||
direction: ltr;
|
||||
}
|
||||
*/
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::file-selector-button {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
font: inherit;
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
output {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/*# sourceMappingURL=bootstrap-reboot.css.map */
|
||||
File diff suppressed because one or more lines are too long
@@ -1,8 +0,0 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
|
||||
File diff suppressed because one or more lines are too long
@@ -1,424 +0,0 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||
*/
|
||||
*,
|
||||
*::before,
|
||||
*::after {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: no-preference) {
|
||||
:root {
|
||||
scroll-behavior: smooth;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
font-family: var(--bs-body-font-family);
|
||||
font-size: var(--bs-body-font-size);
|
||||
font-weight: var(--bs-body-font-weight);
|
||||
line-height: var(--bs-body-line-height);
|
||||
color: var(--bs-body-color);
|
||||
text-align: var(--bs-body-text-align);
|
||||
background-color: var(--bs-body-bg);
|
||||
-webkit-text-size-adjust: 100%;
|
||||
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
||||
}
|
||||
|
||||
hr {
|
||||
margin: 1rem 0;
|
||||
color: inherit;
|
||||
background-color: currentColor;
|
||||
border: 0;
|
||||
opacity: 0.25;
|
||||
}
|
||||
|
||||
hr:not([size]) {
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
h6, h5, h4, h3, h2, h1 {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
font-weight: 500;
|
||||
line-height: 1.2;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: calc(1.375rem + 1.5vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h1 {
|
||||
font-size: 2.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: calc(1.325rem + 0.9vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h2 {
|
||||
font-size: 2rem;
|
||||
}
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: calc(1.3rem + 0.6vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h3 {
|
||||
font-size: 1.75rem;
|
||||
}
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: calc(1.275rem + 0.3vw);
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
p {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
abbr[title],
|
||||
abbr[data-bs-original-title] {
|
||||
-webkit-text-decoration: underline dotted;
|
||||
text-decoration: underline dotted;
|
||||
cursor: help;
|
||||
-webkit-text-decoration-skip-ink: none;
|
||||
text-decoration-skip-ink: none;
|
||||
}
|
||||
|
||||
address {
|
||||
margin-bottom: 1rem;
|
||||
font-style: normal;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul {
|
||||
padding-right: 2rem;
|
||||
}
|
||||
|
||||
ol,
|
||||
ul,
|
||||
dl {
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
}
|
||||
|
||||
ol ol,
|
||||
ul ul,
|
||||
ol ul,
|
||||
ul ol {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
dt {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
dd {
|
||||
margin-bottom: 0.5rem;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
blockquote {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
b,
|
||||
strong {
|
||||
font-weight: bolder;
|
||||
}
|
||||
|
||||
small {
|
||||
font-size: 0.875em;
|
||||
}
|
||||
|
||||
mark {
|
||||
padding: 0.2em;
|
||||
background-color: #fcf8e3;
|
||||
}
|
||||
|
||||
sub,
|
||||
sup {
|
||||
position: relative;
|
||||
font-size: 0.75em;
|
||||
line-height: 0;
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
sub {
|
||||
bottom: -0.25em;
|
||||
}
|
||||
|
||||
sup {
|
||||
top: -0.5em;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0d6efd;
|
||||
text-decoration: underline;
|
||||
}
|
||||
a:hover {
|
||||
color: #0a58ca;
|
||||
}
|
||||
|
||||
a:not([href]):not([class]), a:not([href]):not([class]):hover {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
pre,
|
||||
code,
|
||||
kbd,
|
||||
samp {
|
||||
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
||||
font-size: 1em;
|
||||
direction: ltr ;
|
||||
unicode-bidi: bidi-override;
|
||||
}
|
||||
|
||||
pre {
|
||||
display: block;
|
||||
margin-top: 0;
|
||||
margin-bottom: 1rem;
|
||||
overflow: auto;
|
||||
font-size: 0.875em;
|
||||
}
|
||||
pre code {
|
||||
font-size: inherit;
|
||||
color: inherit;
|
||||
word-break: normal;
|
||||
}
|
||||
|
||||
code {
|
||||
font-size: 0.875em;
|
||||
color: #d63384;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
a > code {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
kbd {
|
||||
padding: 0.2rem 0.4rem;
|
||||
font-size: 0.875em;
|
||||
color: #fff;
|
||||
background-color: #212529;
|
||||
border-radius: 0.2rem;
|
||||
}
|
||||
kbd kbd {
|
||||
padding: 0;
|
||||
font-size: 1em;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
figure {
|
||||
margin: 0 0 1rem;
|
||||
}
|
||||
|
||||
img,
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
table {
|
||||
caption-side: bottom;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
caption {
|
||||
padding-top: 0.5rem;
|
||||
padding-bottom: 0.5rem;
|
||||
color: #6c757d;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
th {
|
||||
text-align: inherit;
|
||||
text-align: -webkit-match-parent;
|
||||
}
|
||||
|
||||
thead,
|
||||
tbody,
|
||||
tfoot,
|
||||
tr,
|
||||
td,
|
||||
th {
|
||||
border-color: inherit;
|
||||
border-style: solid;
|
||||
border-width: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
button {
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
button:focus:not(:focus-visible) {
|
||||
outline: 0;
|
||||
}
|
||||
|
||||
input,
|
||||
button,
|
||||
select,
|
||||
optgroup,
|
||||
textarea {
|
||||
margin: 0;
|
||||
font-family: inherit;
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
button,
|
||||
select {
|
||||
text-transform: none;
|
||||
}
|
||||
|
||||
[role=button] {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
select {
|
||||
word-wrap: normal;
|
||||
}
|
||||
select:disabled {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
[list]::-webkit-calendar-picker-indicator {
|
||||
display: none;
|
||||
}
|
||||
|
||||
button,
|
||||
[type=button],
|
||||
[type=reset],
|
||||
[type=submit] {
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
button:not(:disabled),
|
||||
[type=button]:not(:disabled),
|
||||
[type=reset]:not(:disabled),
|
||||
[type=submit]:not(:disabled) {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
::-moz-focus-inner {
|
||||
padding: 0;
|
||||
border-style: none;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
fieldset {
|
||||
min-width: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
legend {
|
||||
float: right;
|
||||
width: 100%;
|
||||
padding: 0;
|
||||
margin-bottom: 0.5rem;
|
||||
font-size: calc(1.275rem + 0.3vw);
|
||||
line-height: inherit;
|
||||
}
|
||||
@media (min-width: 1200px) {
|
||||
legend {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
}
|
||||
legend + * {
|
||||
clear: right;
|
||||
}
|
||||
|
||||
::-webkit-datetime-edit-fields-wrapper,
|
||||
::-webkit-datetime-edit-text,
|
||||
::-webkit-datetime-edit-minute,
|
||||
::-webkit-datetime-edit-hour-field,
|
||||
::-webkit-datetime-edit-day-field,
|
||||
::-webkit-datetime-edit-month-field,
|
||||
::-webkit-datetime-edit-year-field {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::-webkit-inner-spin-button {
|
||||
height: auto;
|
||||
}
|
||||
|
||||
[type=search] {
|
||||
outline-offset: -2px;
|
||||
-webkit-appearance: textfield;
|
||||
}
|
||||
|
||||
[type="tel"],
|
||||
[type="url"],
|
||||
[type="email"],
|
||||
[type="number"] {
|
||||
direction: ltr;
|
||||
}
|
||||
::-webkit-search-decoration {
|
||||
-webkit-appearance: none;
|
||||
}
|
||||
|
||||
::-webkit-color-swatch-wrapper {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
::file-selector-button {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
::-webkit-file-upload-button {
|
||||
font: inherit;
|
||||
-webkit-appearance: button;
|
||||
}
|
||||
|
||||
output {
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
iframe {
|
||||
border: 0;
|
||||
}
|
||||
|
||||
summary {
|
||||
display: list-item;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
progress {
|
||||
vertical-align: baseline;
|
||||
}
|
||||
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
/*# sourceMappingURL=bootstrap-reboot.rtl.css.map */
|
||||
File diff suppressed because one or more lines are too long
@@ -1,8 +0,0 @@
|
||||
/*!
|
||||
* Bootstrap Reboot v5.1.0 (https://getbootstrap.com/)
|
||||
* Copyright 2011-2021 The Bootstrap Authors
|
||||
* Copyright 2011-2021 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||||
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
|
||||
*/*,::after,::before{box-sizing:border-box}@media (prefers-reduced-motion:no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}hr{margin:1rem 0;color:inherit;background-color:currentColor;border:0;opacity:.25}hr:not([size]){height:1px}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2}h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width:1200px){h1{font-size:2.5rem}}h2{font-size:calc(1.325rem + .9vw)}@media (min-width:1200px){h2{font-size:2rem}}h3{font-size:calc(1.3rem + .6vw)}@media (min-width:1200px){h3{font-size:1.75rem}}h4{font-size:calc(1.275rem + .3vw)}@media (min-width:1200px){h4{font-size:1.5rem}}h5{font-size:1.25rem}h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[data-bs-original-title],abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-right:2rem}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-right:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:.875em}mark{padding:.2em;background-color:#fcf8e3}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#0d6efd;text-decoration:underline}a:hover{color:#0a58ca}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em;direction:ltr;unicode-bidi:bidi-override}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:#d63384;word-wrap:break-word}a>code{color:inherit}kbd{padding:.2rem .4rem;font-size:.875em;color:#fff;background-color:#212529;border-radius:.2rem}kbd kbd{padding:0;font-size:1em;font-weight:700}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:#6c757d;text-align:right}th{text-align:inherit;text-align:-webkit-match-parent}tbody,td,tfoot,th,thead,tr{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]::-webkit-calendar-picker-indicator{display:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:right;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width:1200px){legend{font-size:1.5rem}}legend+*{clear:right}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-text,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:textfield}[type=email],[type=number],[type=tel],[type=url]{direction:ltr}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::file-selector-button{font:inherit}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}
|
||||
/*# sourceMappingURL=bootstrap-reboot.rtl.min.css.map */
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-11221
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-11197
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-4977
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-5026
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,23 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) .NET Foundation and Contributors
|
||||
|
||||
All rights reserved.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
-435
@@ -1,435 +0,0 @@
|
||||
/**
|
||||
* @license
|
||||
* Unobtrusive validation support library for jQuery and jQuery Validate
|
||||
* Copyright (c) .NET Foundation. All rights reserved.
|
||||
* Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
|
||||
* @version v4.0.0
|
||||
*/
|
||||
|
||||
/*jslint white: true, browser: true, onevar: true, undef: true, nomen: true, eqeqeq: true, plusplus: true, bitwise: true, regexp: true, newcap: true, immed: true, strict: false */
|
||||
/*global document: false, jQuery: false */
|
||||
|
||||
(function (factory) {
|
||||
if (typeof define === 'function' && define.amd) {
|
||||
// AMD. Register as an anonymous module.
|
||||
define("jquery.validate.unobtrusive", ['jquery-validation'], factory);
|
||||
} else if (typeof module === 'object' && module.exports) {
|
||||
// CommonJS-like environments that support module.exports
|
||||
module.exports = factory(require('jquery-validation'));
|
||||
} else {
|
||||
// Browser global
|
||||
jQuery.validator.unobtrusive = factory(jQuery);
|
||||
}
|
||||
}(function ($) {
|
||||
var $jQval = $.validator,
|
||||
adapters,
|
||||
data_validation = "unobtrusiveValidation";
|
||||
|
||||
function setValidationValues(options, ruleName, value) {
|
||||
options.rules[ruleName] = value;
|
||||
if (options.message) {
|
||||
options.messages[ruleName] = options.message;
|
||||
}
|
||||
}
|
||||
|
||||
function splitAndTrim(value) {
|
||||
return value.replace(/^\s+|\s+$/g, "").split(/\s*,\s*/g);
|
||||
}
|
||||
|
||||
function escapeAttributeValue(value) {
|
||||
// As mentioned on http://api.jquery.com/category/selectors/
|
||||
return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g, "\\$1");
|
||||
}
|
||||
|
||||
function getModelPrefix(fieldName) {
|
||||
return fieldName.substr(0, fieldName.lastIndexOf(".") + 1);
|
||||
}
|
||||
|
||||
function appendModelPrefix(value, prefix) {
|
||||
if (value.indexOf("*.") === 0) {
|
||||
value = value.replace("*.", prefix);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function onError(error, inputElement) { // 'this' is the form element
|
||||
var container = $(this).find("[data-valmsg-for='" + escapeAttributeValue(inputElement[0].name) + "']"),
|
||||
replaceAttrValue = container.attr("data-valmsg-replace"),
|
||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) !== false : null;
|
||||
|
||||
container.removeClass("field-validation-valid").addClass("field-validation-error");
|
||||
error.data("unobtrusiveContainer", container);
|
||||
|
||||
if (replace) {
|
||||
container.empty();
|
||||
error.removeClass("input-validation-error").appendTo(container);
|
||||
}
|
||||
else {
|
||||
error.hide();
|
||||
}
|
||||
}
|
||||
|
||||
function onErrors(event, validator) { // 'this' is the form element
|
||||
var container = $(this).find("[data-valmsg-summary=true]"),
|
||||
list = container.find("ul");
|
||||
|
||||
if (list && list.length && validator.errorList.length) {
|
||||
list.empty();
|
||||
container.addClass("validation-summary-errors").removeClass("validation-summary-valid");
|
||||
|
||||
$.each(validator.errorList, function () {
|
||||
$("<li />").html(this.message).appendTo(list);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function onSuccess(error) { // 'this' is the form element
|
||||
var container = error.data("unobtrusiveContainer");
|
||||
|
||||
if (container) {
|
||||
var replaceAttrValue = container.attr("data-valmsg-replace"),
|
||||
replace = replaceAttrValue ? $.parseJSON(replaceAttrValue) : null;
|
||||
|
||||
container.addClass("field-validation-valid").removeClass("field-validation-error");
|
||||
error.removeData("unobtrusiveContainer");
|
||||
|
||||
if (replace) {
|
||||
container.empty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function onReset(event) { // 'this' is the form element
|
||||
var $form = $(this),
|
||||
key = '__jquery_unobtrusive_validation_form_reset';
|
||||
if ($form.data(key)) {
|
||||
return;
|
||||
}
|
||||
// Set a flag that indicates we're currently resetting the form.
|
||||
$form.data(key, true);
|
||||
try {
|
||||
$form.data("validator").resetForm();
|
||||
} finally {
|
||||
$form.removeData(key);
|
||||
}
|
||||
|
||||
$form.find(".validation-summary-errors")
|
||||
.addClass("validation-summary-valid")
|
||||
.removeClass("validation-summary-errors");
|
||||
$form.find(".field-validation-error")
|
||||
.addClass("field-validation-valid")
|
||||
.removeClass("field-validation-error")
|
||||
.removeData("unobtrusiveContainer")
|
||||
.find(">*") // If we were using valmsg-replace, get the underlying error
|
||||
.removeData("unobtrusiveContainer");
|
||||
}
|
||||
|
||||
function validationInfo(form) {
|
||||
var $form = $(form),
|
||||
result = $form.data(data_validation),
|
||||
onResetProxy = $.proxy(onReset, form),
|
||||
defaultOptions = $jQval.unobtrusive.options || {},
|
||||
execInContext = function (name, args) {
|
||||
var func = defaultOptions[name];
|
||||
func && $.isFunction(func) && func.apply(form, args);
|
||||
};
|
||||
|
||||
if (!result) {
|
||||
result = {
|
||||
options: { // options structure passed to jQuery Validate's validate() method
|
||||
errorClass: defaultOptions.errorClass || "input-validation-error",
|
||||
errorElement: defaultOptions.errorElement || "span",
|
||||
errorPlacement: function () {
|
||||
onError.apply(form, arguments);
|
||||
execInContext("errorPlacement", arguments);
|
||||
},
|
||||
invalidHandler: function () {
|
||||
onErrors.apply(form, arguments);
|
||||
execInContext("invalidHandler", arguments);
|
||||
},
|
||||
messages: {},
|
||||
rules: {},
|
||||
success: function () {
|
||||
onSuccess.apply(form, arguments);
|
||||
execInContext("success", arguments);
|
||||
}
|
||||
},
|
||||
attachValidation: function () {
|
||||
$form
|
||||
.off("reset." + data_validation, onResetProxy)
|
||||
.on("reset." + data_validation, onResetProxy)
|
||||
.validate(this.options);
|
||||
},
|
||||
validate: function () { // a validation function that is called by unobtrusive Ajax
|
||||
$form.validate();
|
||||
return $form.valid();
|
||||
}
|
||||
};
|
||||
$form.data(data_validation, result);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
|
||||
$jQval.unobtrusive = {
|
||||
adapters: [],
|
||||
|
||||
parseElement: function (element, skipAttach) {
|
||||
/// <summary>
|
||||
/// Parses a single HTML element for unobtrusive validation attributes.
|
||||
/// </summary>
|
||||
/// <param name="element" domElement="true">The HTML element to be parsed.</param>
|
||||
/// <param name="skipAttach" type="Boolean">[Optional] true to skip attaching the
|
||||
/// validation to the form. If parsing just this single element, you should specify true.
|
||||
/// If parsing several elements, you should specify false, and manually attach the validation
|
||||
/// to the form when you are finished. The default is false.</param>
|
||||
var $element = $(element),
|
||||
form = $element.parents("form")[0],
|
||||
valInfo, rules, messages;
|
||||
|
||||
if (!form) { // Cannot do client-side validation without a form
|
||||
return;
|
||||
}
|
||||
|
||||
valInfo = validationInfo(form);
|
||||
valInfo.options.rules[element.name] = rules = {};
|
||||
valInfo.options.messages[element.name] = messages = {};
|
||||
|
||||
$.each(this.adapters, function () {
|
||||
var prefix = "data-val-" + this.name,
|
||||
message = $element.attr(prefix),
|
||||
paramValues = {};
|
||||
|
||||
if (message !== undefined) { // Compare against undefined, because an empty message is legal (and falsy)
|
||||
prefix += "-";
|
||||
|
||||
$.each(this.params, function () {
|
||||
paramValues[this] = $element.attr(prefix + this);
|
||||
});
|
||||
|
||||
this.adapt({
|
||||
element: element,
|
||||
form: form,
|
||||
message: message,
|
||||
params: paramValues,
|
||||
rules: rules,
|
||||
messages: messages
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
$.extend(rules, { "__dummy__": true });
|
||||
|
||||
if (!skipAttach) {
|
||||
valInfo.attachValidation();
|
||||
}
|
||||
},
|
||||
|
||||
parse: function (selector) {
|
||||
/// <summary>
|
||||
/// Parses all the HTML elements in the specified selector. It looks for input elements decorated
|
||||
/// with the [data-val=true] attribute value and enables validation according to the data-val-*
|
||||
/// attribute values.
|
||||
/// </summary>
|
||||
/// <param name="selector" type="String">Any valid jQuery selector.</param>
|
||||
|
||||
// $forms includes all forms in selector's DOM hierarchy (parent, children and self) that have at least one
|
||||
// element with data-val=true
|
||||
var $selector = $(selector),
|
||||
$forms = $selector.parents()
|
||||
.addBack()
|
||||
.filter("form")
|
||||
.add($selector.find("form"))
|
||||
.has("[data-val=true]");
|
||||
|
||||
$selector.find("[data-val=true]").each(function () {
|
||||
$jQval.unobtrusive.parseElement(this, true);
|
||||
});
|
||||
|
||||
$forms.each(function () {
|
||||
var info = validationInfo(this);
|
||||
if (info) {
|
||||
info.attachValidation();
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
adapters = $jQval.unobtrusive.adapters;
|
||||
|
||||
adapters.add = function (adapterName, params, fn) {
|
||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation.</summary>
|
||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
||||
/// <param name="params" type="Array" optional="true">[Optional] An array of parameter names (strings) that will
|
||||
/// be extracted from the data-val-nnnn-mmmm HTML attributes (where nnnn is the adapter name, and
|
||||
/// mmmm is the parameter name).</param>
|
||||
/// <param name="fn" type="Function">The function to call, which adapts the values from the HTML
|
||||
/// attributes into jQuery Validate rules and/or messages.</param>
|
||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
||||
if (!fn) { // Called with no params, just a function
|
||||
fn = params;
|
||||
params = [];
|
||||
}
|
||||
this.push({ name: adapterName, params: params, adapt: fn });
|
||||
return this;
|
||||
};
|
||||
|
||||
adapters.addBool = function (adapterName, ruleName) {
|
||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
||||
/// the jQuery Validate validation rule has no parameter values.</summary>
|
||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
||||
/// of adapterName will be used instead.</param>
|
||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
||||
return this.add(adapterName, function (options) {
|
||||
setValidationValues(options, ruleName || adapterName, true);
|
||||
});
|
||||
};
|
||||
|
||||
adapters.addMinMax = function (adapterName, minRuleName, maxRuleName, minMaxRuleName, minAttribute, maxAttribute) {
|
||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
||||
/// the jQuery Validate validation has three potential rules (one for min-only, one for max-only, and
|
||||
/// one for min-and-max). The HTML parameters are expected to be named -min and -max.</summary>
|
||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
||||
/// in the data-val-nnnn HTML attribute (where nnnn is the adapter name).</param>
|
||||
/// <param name="minRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
||||
/// have a minimum value.</param>
|
||||
/// <param name="maxRuleName" type="String">The name of the jQuery Validate rule to be used when you only
|
||||
/// have a maximum value.</param>
|
||||
/// <param name="minMaxRuleName" type="String">The name of the jQuery Validate rule to be used when you
|
||||
/// have both a minimum and maximum value.</param>
|
||||
/// <param name="minAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
||||
/// contains the minimum value. The default is "min".</param>
|
||||
/// <param name="maxAttribute" type="String" optional="true">[Optional] The name of the HTML attribute that
|
||||
/// contains the maximum value. The default is "max".</param>
|
||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
||||
return this.add(adapterName, [minAttribute || "min", maxAttribute || "max"], function (options) {
|
||||
var min = options.params.min,
|
||||
max = options.params.max;
|
||||
|
||||
if (min && max) {
|
||||
setValidationValues(options, minMaxRuleName, [min, max]);
|
||||
}
|
||||
else if (min) {
|
||||
setValidationValues(options, minRuleName, min);
|
||||
}
|
||||
else if (max) {
|
||||
setValidationValues(options, maxRuleName, max);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
adapters.addSingleVal = function (adapterName, attribute, ruleName) {
|
||||
/// <summary>Adds a new adapter to convert unobtrusive HTML into a jQuery Validate validation, where
|
||||
/// the jQuery Validate validation rule has a single value.</summary>
|
||||
/// <param name="adapterName" type="String">The name of the adapter to be added. This matches the name used
|
||||
/// in the data-val-nnnn HTML attribute(where nnnn is the adapter name).</param>
|
||||
/// <param name="attribute" type="String">[Optional] The name of the HTML attribute that contains the value.
|
||||
/// The default is "val".</param>
|
||||
/// <param name="ruleName" type="String" optional="true">[Optional] The name of the jQuery Validate rule. If not provided, the value
|
||||
/// of adapterName will be used instead.</param>
|
||||
/// <returns type="jQuery.validator.unobtrusive.adapters" />
|
||||
return this.add(adapterName, [attribute || "val"], function (options) {
|
||||
setValidationValues(options, ruleName || adapterName, options.params[attribute]);
|
||||
});
|
||||
};
|
||||
|
||||
$jQval.addMethod("__dummy__", function (value, element, params) {
|
||||
return true;
|
||||
});
|
||||
|
||||
$jQval.addMethod("regex", function (value, element, params) {
|
||||
var match;
|
||||
if (this.optional(element)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
match = new RegExp(params).exec(value);
|
||||
return (match && (match.index === 0) && (match[0].length === value.length));
|
||||
});
|
||||
|
||||
$jQval.addMethod("nonalphamin", function (value, element, nonalphamin) {
|
||||
var match;
|
||||
if (nonalphamin) {
|
||||
match = value.match(/\W/g);
|
||||
match = match && match.length >= nonalphamin;
|
||||
}
|
||||
return match;
|
||||
});
|
||||
|
||||
if ($jQval.methods.extension) {
|
||||
adapters.addSingleVal("accept", "mimtype");
|
||||
adapters.addSingleVal("extension", "extension");
|
||||
} else {
|
||||
// for backward compatibility, when the 'extension' validation method does not exist, such as with versions
|
||||
// of JQuery Validation plugin prior to 1.10, we should use the 'accept' method for
|
||||
// validating the extension, and ignore mime-type validations as they are not supported.
|
||||
adapters.addSingleVal("extension", "extension", "accept");
|
||||
}
|
||||
|
||||
adapters.addSingleVal("regex", "pattern");
|
||||
adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");
|
||||
adapters.addMinMax("length", "minlength", "maxlength", "rangelength").addMinMax("range", "min", "max", "range");
|
||||
adapters.addMinMax("minlength", "minlength").addMinMax("maxlength", "minlength", "maxlength");
|
||||
adapters.add("equalto", ["other"], function (options) {
|
||||
var prefix = getModelPrefix(options.element.name),
|
||||
other = options.params.other,
|
||||
fullOtherName = appendModelPrefix(other, prefix),
|
||||
element = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(fullOtherName) + "']")[0];
|
||||
|
||||
setValidationValues(options, "equalTo", element);
|
||||
});
|
||||
adapters.add("required", function (options) {
|
||||
// jQuery Validate equates "required" with "mandatory" for checkbox elements
|
||||
if (options.element.tagName.toUpperCase() !== "INPUT" || options.element.type.toUpperCase() !== "CHECKBOX") {
|
||||
setValidationValues(options, "required", true);
|
||||
}
|
||||
});
|
||||
adapters.add("remote", ["url", "type", "additionalfields"], function (options) {
|
||||
var value = {
|
||||
url: options.params.url,
|
||||
type: options.params.type || "GET",
|
||||
data: {}
|
||||
},
|
||||
prefix = getModelPrefix(options.element.name);
|
||||
|
||||
$.each(splitAndTrim(options.params.additionalfields || options.element.name), function (i, fieldName) {
|
||||
var paramName = appendModelPrefix(fieldName, prefix);
|
||||
value.data[paramName] = function () {
|
||||
var field = $(options.form).find(":input").filter("[name='" + escapeAttributeValue(paramName) + "']");
|
||||
// For checkboxes and radio buttons, only pick up values from checked fields.
|
||||
if (field.is(":checkbox")) {
|
||||
return field.filter(":checked").val() || field.filter(":hidden").val() || '';
|
||||
}
|
||||
else if (field.is(":radio")) {
|
||||
return field.filter(":checked").val() || '';
|
||||
}
|
||||
return field.val();
|
||||
};
|
||||
});
|
||||
|
||||
setValidationValues(options, "remote", value);
|
||||
});
|
||||
adapters.add("password", ["min", "nonalphamin", "regex"], function (options) {
|
||||
if (options.params.min) {
|
||||
setValidationValues(options, "minlength", options.params.min);
|
||||
}
|
||||
if (options.params.nonalphamin) {
|
||||
setValidationValues(options, "nonalphamin", options.params.nonalphamin);
|
||||
}
|
||||
if (options.params.regex) {
|
||||
setValidationValues(options, "regex", options.params.regex);
|
||||
}
|
||||
});
|
||||
adapters.add("fileextensions", ["extensions"], function (options) {
|
||||
setValidationValues(options, "extension", options.params.extensions);
|
||||
});
|
||||
|
||||
$(function () {
|
||||
$jQval.unobtrusive.parse(document);
|
||||
});
|
||||
|
||||
return $jQval.unobtrusive;
|
||||
}));
|
||||
-8
File diff suppressed because one or more lines are too long
@@ -1,22 +0,0 @@
|
||||
The MIT License (MIT)
|
||||
=====================
|
||||
|
||||
Copyright Jörn Zaefferer
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,21 +0,0 @@
|
||||
|
||||
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
-10881
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,484 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class AlquilaFacilContext : DbContext
|
||||
{
|
||||
public AlquilaFacilContext()
|
||||
{
|
||||
}
|
||||
|
||||
public AlquilaFacilContext(DbContextOptions<AlquilaFacilContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<Canon> Canons { get; set; }
|
||||
|
||||
public virtual DbSet<Contrato> Contratos { get; set; }
|
||||
|
||||
public virtual DbSet<Defecto> Defectos { get; set; }
|
||||
|
||||
public virtual DbSet<Garante> Garantia { get; set; }
|
||||
|
||||
public virtual DbSet<Grupo> Grupos { get; set; }
|
||||
|
||||
public virtual DbSet<Inquilino> Inquilinos { get; set; }
|
||||
|
||||
public virtual DbSet<Propiedad> Propiedades { get; set; }
|
||||
|
||||
public virtual DbSet<Propietario> Propietarios { get; set; }
|
||||
|
||||
public virtual DbSet<Recibo> Recibos { get; set; }
|
||||
|
||||
public virtual DbSet<Rol> Rols { get; set; }
|
||||
|
||||
public virtual DbSet<Servicio> Servicios { get; set; }
|
||||
|
||||
public virtual DbSet<ServicioPropiedade> ServicioPropiedades { 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.UseSqlServer("Server=fedesrv.ddns.net,1433;Database=AlquilaFacil;User Id=AlquilaFacil;Password=.n@9c2ve*0,b1ETv].Kipa/~pR~V;Trusted_Connection=False;Encrypt=False;Connection Timeout=5;\n");
|
||||
|
||||
protected override void OnModelCreating(ModelBuilder modelBuilder)
|
||||
{
|
||||
modelBuilder.Entity<Canon>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__CANON__3214EC27DAD9CBBD");
|
||||
|
||||
entity.ToTable("CANON");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Idrecibo).HasColumnName("IDRECIBO");
|
||||
entity.Property(e => e.Mes).HasColumnName("MES");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
entity.Property(e => e.Pagado).HasColumnName("PAGADO");
|
||||
|
||||
entity.HasOne(d => d.IdreciboNavigation).WithMany(p => p.Canons)
|
||||
.HasForeignKey(d => d.Idrecibo)
|
||||
.HasConstraintName("FK__CANON__IDRECIBO__540C7B00");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Contrato>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__CONTRATO__3214EC27314E1A88");
|
||||
|
||||
entity.ToTable("CONTRATO");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Dniinquilino).HasColumnName("DNIINQUILINO");
|
||||
entity.Property(e => e.Dnipropietario).HasColumnName("DNIPROPIETARIO");
|
||||
entity.Property(e => e.Duracionmeses).HasColumnName("DURACIONMESES");
|
||||
entity.Property(e => e.Fechainicio)
|
||||
.HasColumnType("datetime")
|
||||
.HasColumnName("FECHAINICIO");
|
||||
entity.Property(e => e.Idpropiedad).HasColumnName("IDPROPIEDAD");
|
||||
entity.Property(e => e.Indiceactualizacion)
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("INDICEACTUALIZACION");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
entity.HasOne(d => d.DniinquilinoNavigation).WithMany(p => p.Contratos)
|
||||
.HasForeignKey(d => d.Dniinquilino)
|
||||
.HasConstraintName("FK__CONTRATO__DNIINQ__01142BA1");
|
||||
|
||||
entity.HasOne(d => d.DnipropietarioNavigation).WithMany(p => p.Contratos)
|
||||
.HasForeignKey(d => d.Dnipropietario)
|
||||
.HasConstraintName("FK__CONTRATO__DNIPRO__02084FDA");
|
||||
|
||||
entity.HasOne(d => d.IdpropiedadNavigation).WithMany(p => p.Contratos)
|
||||
.HasForeignKey(d => d.Idpropiedad)
|
||||
.HasConstraintName("FK__CONTRATO__IDPROP__02FC7413");
|
||||
|
||||
entity.HasMany(d => d.Dnigarantia).WithMany(p => p.Idcontratos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ContratoGarantium",
|
||||
r => r.HasOne<Garante>().WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___DNIGA__282DF8C2"),
|
||||
l => l.HasOne<Contrato>().WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2739D489"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idcontrato", "Dnigarantia").HasName("PK__CONTRATO__08D9A618A2AF4EE5");
|
||||
j.ToTable("CONTRATO_GARANTIA");
|
||||
j.IndexerProperty<int>("Idcontrato").HasColumnName("IDCONTRATO");
|
||||
j.IndexerProperty<long>("Dnigarantia").HasColumnName("DNIGARANTIA");
|
||||
});
|
||||
|
||||
entity.HasMany(d => d.Idcanons).WithMany(p => p.Idcontratos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ContratoCanon",
|
||||
r => r.HasOne<Canon>().WithMany()
|
||||
.HasForeignKey("Idcanon")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___IDCAN__3493CFA7"),
|
||||
l => l.HasOne<Contrato>().WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__339FAB6E"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idcontrato", "Idcanon").HasName("PK__CONTRATO__EAB1D189E5C1886B");
|
||||
j.ToTable("CONTRATO_CANON");
|
||||
j.IndexerProperty<int>("Idcontrato").HasColumnName("IDCONTRATO");
|
||||
j.IndexerProperty<int>("Idcanon").HasColumnName("IDCANON");
|
||||
});
|
||||
|
||||
entity.HasMany(d => d.Iddefectos).WithMany(p => p.Idcontratos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ContratoDefecto",
|
||||
r => r.HasOne<Defecto>().WithMany()
|
||||
.HasForeignKey("Iddefecto")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___IDDEF__2BFE89A6"),
|
||||
l => l.HasOne<Contrato>().WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2B0A656D"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idcontrato", "Iddefecto").HasName("PK__CONTRATO__3A449B2F445D3682");
|
||||
j.ToTable("CONTRATO_DEFECTO");
|
||||
j.IndexerProperty<int>("Idcontrato").HasColumnName("IDCONTRATO");
|
||||
j.IndexerProperty<int>("Iddefecto").HasColumnName("IDDEFECTO");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Defecto>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__DEFECTO__3214EC27E043B726");
|
||||
|
||||
entity.ToTable("DEFECTO");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Costo)
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("COSTO");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DESCRIPCION");
|
||||
entity.Property(e => e.Estaarreglado).HasColumnName("ESTAARREGLADO");
|
||||
entity.Property(e => e.Pagainquilino).HasColumnName("PAGAINQUILINO");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Garante>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Dni).HasName("PK__GARANTIA__C035B8DC8E6BAB11");
|
||||
|
||||
entity.ToTable("GARANTIA");
|
||||
|
||||
entity.HasIndex(e => e.Email, "UQ__GARANTIA__161CF724C0013CA1").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Celular, "UQ__GARANTIA__6758673E51796017").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Cuil, "UQ__GARANTIA__F46C15900DA7BBE1").IsUnique();
|
||||
|
||||
entity.Property(e => e.Dni).HasColumnName("DNI")
|
||||
.ValueGeneratedNever();
|
||||
|
||||
entity.Property(e => e.Apellido)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("APELLIDO");
|
||||
entity.Property(e => e.Celular)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("CELULAR");
|
||||
entity.Property(e => e.Contrasena)
|
||||
.HasMaxLength(64)
|
||||
.HasColumnName("CONTRASENA");
|
||||
entity.Property(e => e.Cuil).HasColumnName("CUIL");
|
||||
entity.Property(e => e.Domicilio)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DOMICILIO");
|
||||
entity.Property(e => e.Domiciliolaboral)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DOMICILIOLABORAL");
|
||||
entity.Property(e => e.Email)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("EMAIL");
|
||||
entity.Property(e => e.Lugartrabajo)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("LUGARTRABAJO");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("NOMBRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Grupo>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__GRUPO__3214EC2778FB625D");
|
||||
|
||||
entity.ToTable("GRUPO");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
entity.HasMany(d => d.Dnigarantia).WithMany(p => p.Idgrupos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"GrupoGarantium",
|
||||
r => r.HasOne<Garante>().WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_GAR__DNIGA__46B27FE2"),
|
||||
l => l.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_GAR__IDGRU__45BE5BA9"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idgrupo", "Dnigarantia").HasName("PK__GRUPO_GA__F9F1F0A3A5F02DDF");
|
||||
j.ToTable("GRUPO_GARANTIA");
|
||||
j.IndexerProperty<int>("Idgrupo").HasColumnName("IDGRUPO");
|
||||
j.IndexerProperty<long>("Dnigarantia").HasColumnName("DNIGARANTIA");
|
||||
});
|
||||
|
||||
entity.HasMany(d => d.Dniinquilinos).WithMany(p => p.Idgrupos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"GrupoInquilino",
|
||||
r => r.HasOne<Inquilino>().WithMany()
|
||||
.HasForeignKey("Dniinquilino")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_INQ__DNIIN__40058253"),
|
||||
l => l.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_INQ__IDGRU__3F115E1A"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idgrupo", "Dniinquilino").HasName("PK__GRUPO_IN__FC8CB8C5DC668E46");
|
||||
j.ToTable("GRUPO_INQUILINO");
|
||||
j.IndexerProperty<int>("Idgrupo").HasColumnName("IDGRUPO");
|
||||
j.IndexerProperty<long>("Dniinquilino").HasColumnName("DNIINQUILINO");
|
||||
});
|
||||
|
||||
entity.HasMany(d => d.Dnipropietarios).WithMany(p => p.Idgrupos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"GrupoPropietario",
|
||||
r => r.HasOne<Propietario>().WithMany()
|
||||
.HasForeignKey("Dnipropietario")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_PRO__DNIPR__4A8310C6"),
|
||||
l => l.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_PRO__IDGRU__498EEC8D"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idgrupo", "Dnipropietario").HasName("PK__GRUPO_PR__D5806AB6196637D1");
|
||||
j.ToTable("GRUPO_PROPIETARIO");
|
||||
j.IndexerProperty<int>("Idgrupo").HasColumnName("IDGRUPO");
|
||||
j.IndexerProperty<long>("Dnipropietario").HasColumnName("DNIPROPIETARIO");
|
||||
});
|
||||
|
||||
entity.HasMany(d => d.Idrols).WithMany(p => p.Idgrupos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"GrupoRol",
|
||||
r => r.HasOne<Rol>().WithMany()
|
||||
.HasForeignKey("Idrol")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDROL__3C34F16F"),
|
||||
l => l.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.ClientSetNull)
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDGRU__3B40CD36"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idgrupo", "Idrol").HasName("PK__GRUPO_RO__5035D4A88EFB1AF1");
|
||||
j.ToTable("GRUPO_ROL");
|
||||
j.IndexerProperty<int>("Idgrupo").HasColumnName("IDGRUPO");
|
||||
j.IndexerProperty<int>("Idrol").HasColumnName("IDROL");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Inquilino>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Dni).HasName("PK__INQUILIN__C035B8DC051D254F");
|
||||
|
||||
entity.ToTable("INQUILINO");
|
||||
|
||||
entity.HasIndex(e => e.Email, "UQ__INQUILIN__161CF724192A8FBF").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Celular, "UQ__INQUILIN__6758673EB3CC90D6").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Cuil, "UQ__INQUILIN__F46C1590EF9A325E").IsUnique();
|
||||
|
||||
entity.Property(e => e.Dni).HasColumnName("DNI")
|
||||
.ValueGeneratedNever();
|
||||
|
||||
entity.Property(e => e.Apellido)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("APELLIDO");
|
||||
entity.Property(e => e.Celular)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("CELULAR");
|
||||
entity.Property(e => e.Contrasena)
|
||||
.HasMaxLength(64)
|
||||
.HasColumnName("CONTRASENA");
|
||||
entity.Property(e => e.Cuil).HasColumnName("CUIL");
|
||||
entity.Property(e => e.Domicilio)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DOMICILIO");
|
||||
entity.Property(e => e.Email)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("EMAIL");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("NOMBRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Propiedad>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__PROPIEDA__3214EC2739D8661A");
|
||||
|
||||
entity.ToTable("PROPIEDADES");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Canthabitaciones).HasColumnName("CANTHABITACIONES");
|
||||
entity.Property(e => e.Dni).HasColumnName("DNI");
|
||||
entity.Property(e => e.Letra)
|
||||
.HasMaxLength(2)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("LETRA");
|
||||
entity.Property(e => e.Piso).HasColumnName("PISO");
|
||||
entity.Property(e => e.Tienecocina).HasColumnName("TIENECOCINA");
|
||||
entity.Property(e => e.Ubicacion)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("UBICACION");
|
||||
|
||||
entity.HasOne(d => d.DniNavigation).WithMany(p => p.Propiedades)
|
||||
.HasForeignKey(d => d.Dni)
|
||||
.HasConstraintName("FK__PROPIEDADES__DNI__44FF419A");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Propietario>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Dni).HasName("PK__PROPIETA__C035B8DC136518F4");
|
||||
|
||||
entity.ToTable("PROPIETARIO");
|
||||
|
||||
entity.HasIndex(e => e.Email, "UQ__PROPIETA__161CF7246E3AA1B6").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Celular, "UQ__PROPIETA__6758673E211BCB21").IsUnique();
|
||||
|
||||
entity.HasIndex(e => e.Cuil, "UQ__PROPIETA__F46C15901A8D2463").IsUnique();
|
||||
|
||||
entity.Property(e => e.Dni).HasColumnName("DNI")
|
||||
.ValueGeneratedNever();
|
||||
|
||||
entity.Property(e => e.Apellido)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("APELLIDO");
|
||||
entity.Property(e => e.Celular)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("CELULAR");
|
||||
entity.Property(e => e.Contrasena)
|
||||
.HasMaxLength(64)
|
||||
.HasColumnName("CONTRASENA");
|
||||
entity.Property(e => e.Cuil).HasColumnName("CUIL");
|
||||
entity.Property(e => e.Domicilio)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DOMICILIO");
|
||||
entity.Property(e => e.Email)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("EMAIL");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("NOMBRE");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Recibo>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__RECIBO__3214EC277135BC90");
|
||||
|
||||
entity.ToTable("RECIBO");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Mes).HasColumnName("MES");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Rol>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__ROL__3214EC27DE6A34BE");
|
||||
|
||||
entity.ToTable("ROL");
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Descipcion)
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DESCIPCION");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Servicio>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PK__SERVICIO__3214EC27468ADAA2");
|
||||
|
||||
entity.ToTable("SERVICIO");
|
||||
|
||||
entity.HasIndex(e => e.Descripcion, "UQ__SERVICIO__794449EF1A4F44FF").IsUnique();
|
||||
|
||||
entity.Property(e => e.Id).HasColumnName("ID");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnName("DESCRIPCION");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<ServicioPropiedade>(entity =>
|
||||
{
|
||||
entity
|
||||
.HasNoKey()
|
||||
.ToTable("SERVICIO_PROPIEDADES");
|
||||
|
||||
entity.Property(e => e.Idpropiedad).HasColumnName("IDPROPIEDAD");
|
||||
entity.Property(e => e.Idservicio).HasColumnName("IDSERVICIO");
|
||||
|
||||
entity.HasOne(d => d.IdpropiedadNavigation).WithMany()
|
||||
.HasForeignKey(d => d.Idpropiedad)
|
||||
.HasConstraintName("FK__SERVICIO___IDPRO__49C3F6B7");
|
||||
|
||||
entity.HasOne(d => d.IdservicioNavigation).WithMany()
|
||||
.HasForeignKey(d => d.Idservicio)
|
||||
.HasConstraintName("FK__SERVICIO___IDSER__4AB81AF0");
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
}
|
||||
@@ -0,0 +1,519 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class AlquilaFacilContext : DbContext
|
||||
{
|
||||
public AlquilaFacilContext()
|
||||
{
|
||||
}
|
||||
|
||||
public AlquilaFacilContext(DbContextOptions<AlquilaFacilContext> options)
|
||||
: base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public virtual DbSet<Canon> Canons { get; set; }
|
||||
|
||||
public virtual DbSet<Cliente> Clientes { get; set; }
|
||||
|
||||
public virtual DbSet<Contrato> Contratos { get; set; }
|
||||
|
||||
public virtual DbSet<Defecto> Defectos { get; set; }
|
||||
|
||||
public virtual DbSet<Estadodefecto> Estadodefectos { get; set; }
|
||||
|
||||
public virtual DbSet<Estadoventa> Estadoventas { get; set; }
|
||||
|
||||
public virtual DbSet<Garante> Garantes { get; set; }
|
||||
|
||||
public virtual DbSet<Grupo> Grupos { get; set; }
|
||||
|
||||
public virtual DbSet<Permiso> Permisos { get; set; }
|
||||
|
||||
public virtual DbSet<Propiedade> Propiedades { get; set; }
|
||||
|
||||
public virtual DbSet<Recibo> Recibos { get; set; }
|
||||
|
||||
public virtual DbSet<TipoPropiedad> TipoPropiedads { get; set; }
|
||||
|
||||
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)
|
||||
{
|
||||
modelBuilder.Entity<Canon>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.ToTable("Canon");
|
||||
|
||||
entity.HasIndex(e => e.Idrecibo, "FK_CAN_REC");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Fecha)
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("fecha");
|
||||
entity.Property(e => e.Idrecibo)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idrecibo");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasPrecision(12)
|
||||
.HasColumnName("monto");
|
||||
entity.Property(e => e.Pagado)
|
||||
.HasColumnType("bit(1)")
|
||||
.HasColumnName("pagado");
|
||||
|
||||
entity.HasOne(d => d.IdreciboNavigation).WithMany(p => p.Canons)
|
||||
.HasForeignKey(d => d.Idrecibo)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CAN_REC");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Cliente>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Dni).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.Dni)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dni");
|
||||
entity.Property(e => e.Apellido)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("apellido");
|
||||
entity.Property(e => e.Celular)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("celular");
|
||||
entity.Property(e => e.Contraseña)
|
||||
.HasMaxLength(128)
|
||||
.HasColumnName("contraseña");
|
||||
entity.Property(e => e.Domicilio)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("domicilio");
|
||||
entity.Property(e => e.Email)
|
||||
.HasMaxLength(50)
|
||||
.HasColumnName("email");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("nombre");
|
||||
entity.Property(e => e.Token)
|
||||
.HasColumnType("text")
|
||||
.HasColumnName("token");
|
||||
|
||||
entity.HasMany(d => d.Idgrupos).WithMany(p => p.Idclientes)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ClienteGrupo",
|
||||
r => r.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_GRU"),
|
||||
l => l.HasOne<Cliente>().WithMany()
|
||||
.HasForeignKey("Idcliente")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CLII"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idcliente", "Idgrupo").HasName("PRIMARY");
|
||||
j.ToTable("cliente_Grupos");
|
||||
j.HasIndex(new[] { "Idgrupo" }, "FK_GRU");
|
||||
j.IndexerProperty<long>("Idcliente")
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idcliente");
|
||||
j.IndexerProperty<int>("Idgrupo")
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idgrupo");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Contrato>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.Dniinquilino, "FK_CON_INQ");
|
||||
|
||||
entity.HasIndex(e => e.Idpropiedad, "FK_CON_PROP");
|
||||
|
||||
entity.HasIndex(e => e.Dnipropietario, "FK_CON_PROPI");
|
||||
|
||||
entity.HasIndex(e => e.Idventa, "FK_CON_VEN");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Cantgarantemin)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("cantgarantemin");
|
||||
entity.Property(e => e.Dniinquilino)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dniinquilino");
|
||||
entity.Property(e => e.Dnipropietario)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dnipropietario");
|
||||
entity.Property(e => e.Fechainicio)
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("fechainicio");
|
||||
entity.Property(e => e.Idpropiedad)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idpropiedad");
|
||||
entity.Property(e => e.Idventa)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idventa");
|
||||
entity.Property(e => e.Indiceactualizacion)
|
||||
.HasPrecision(8)
|
||||
.HasColumnName("indiceactualizacion");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasPrecision(12)
|
||||
.HasColumnName("monto");
|
||||
entity.Property(e => e.Tieneopcionventa)
|
||||
.HasColumnType("bit(1)")
|
||||
.HasColumnName("tieneopcionventa");
|
||||
|
||||
entity.HasOne(d => d.DniinquilinoNavigation).WithMany(p => p.ContratoDniinquilinoNavigations)
|
||||
.HasForeignKey(d => d.Dniinquilino)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CON_INQ");
|
||||
|
||||
entity.HasOne(d => d.DnipropietarioNavigation).WithMany(p => p.ContratoDnipropietarioNavigations)
|
||||
.HasForeignKey(d => d.Dnipropietario)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CON_PROPI");
|
||||
|
||||
entity.HasOne(d => d.IdpropiedadNavigation).WithMany(p => p.Contratos)
|
||||
.HasForeignKey(d => d.Idpropiedad)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CON_PROP");
|
||||
|
||||
entity.HasOne(d => d.IdventaNavigation).WithMany(p => p.Contratos)
|
||||
.HasForeignKey(d => d.Idventa)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CON_VEN");
|
||||
|
||||
entity.HasMany(d => d.Idcanons).WithMany(p => p.Idcontratos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ContratoCanon",
|
||||
r => r.HasOne<Canon>().WithMany()
|
||||
.HasForeignKey("Idcanon")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CONCAN_CAN"),
|
||||
l => l.HasOne<Contrato>().WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CONCAN_CON"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idcontrato", "Idcanon").HasName("PRIMARY");
|
||||
j.ToTable("contrato_canon");
|
||||
j.HasIndex(new[] { "Idcanon" }, "FK_CONCAN_CAN");
|
||||
j.IndexerProperty<long>("Idcontrato")
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idcontrato");
|
||||
j.IndexerProperty<long>("Idcanon")
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idcanon");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Defecto>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.ToTable("Defecto");
|
||||
|
||||
entity.HasIndex(e => e.Idcontrato, "FK_DEF_CON");
|
||||
|
||||
entity.HasIndex(e => e.Idestado, "FK_DEF_EST");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Costo)
|
||||
.HasPrecision(12)
|
||||
.HasColumnName("costo");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("descripcion");
|
||||
entity.Property(e => e.Idcontrato)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idcontrato");
|
||||
entity.Property(e => e.Idestado)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idestado");
|
||||
entity.Property(e => e.Pagainquilino)
|
||||
.HasColumnType("bit(1)")
|
||||
.HasColumnName("pagainquilino");
|
||||
|
||||
entity.HasOne(d => d.IdcontratoNavigation).WithMany(p => p.Defectos)
|
||||
.HasForeignKey(d => d.Idcontrato)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_DEF_CON");
|
||||
|
||||
entity.HasOne(d => d.IdestadoNavigation).WithMany(p => p.Defectos)
|
||||
.HasForeignKey(d => d.Idestado)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_DEF_EST");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Estadodefecto>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.ToTable("Estadodefecto");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Descipcion)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("descipcion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Estadoventa>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(15)
|
||||
.HasColumnName("descripcion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Garante>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Dni).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.Dni)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dni");
|
||||
entity.Property(e => e.Apellido)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("apellido");
|
||||
entity.Property(e => e.Celular)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("celular");
|
||||
entity.Property(e => e.Domicilio)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("domicilio");
|
||||
entity.Property(e => e.Domiciliolaboral)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("domiciliolaboral");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("nombre");
|
||||
|
||||
entity.HasMany(d => d.Idcontratos).WithMany(p => p.Dnigarantes)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"ContratoGarante",
|
||||
r => r.HasOne<Contrato>().WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CONGAR_CON"),
|
||||
l => l.HasOne<Garante>().WithMany()
|
||||
.HasForeignKey("Dnigarante")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_CONGAR_GAR"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Dnigarante", "Idcontrato").HasName("PRIMARY");
|
||||
j.ToTable("contrato_garantes");
|
||||
j.HasIndex(new[] { "Idcontrato" }, "FK_CONGAR_CON");
|
||||
j.IndexerProperty<long>("Dnigarante")
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dnigarante");
|
||||
j.IndexerProperty<long>("Idcontrato")
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idcontrato");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Grupo>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Nombre)
|
||||
.HasMaxLength(12)
|
||||
.HasColumnName("nombre");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Permiso>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(15)
|
||||
.HasColumnName("descripcion");
|
||||
|
||||
entity.HasMany(d => d.Idgrupos).WithMany(p => p.Idpermisos)
|
||||
.UsingEntity<Dictionary<string, object>>(
|
||||
"GrupoPermiso",
|
||||
r => r.HasOne<Grupo>().WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_GRU2"),
|
||||
l => l.HasOne<Permiso>().WithMany()
|
||||
.HasForeignKey("Idpermiso")
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_PER2"),
|
||||
j =>
|
||||
{
|
||||
j.HasKey("Idpermiso", "Idgrupo").HasName("PRIMARY");
|
||||
j.ToTable("grupo_Permisos");
|
||||
j.HasIndex(new[] { "Idgrupo" }, "FK_GRU2");
|
||||
j.IndexerProperty<int>("Idpermiso")
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idpermiso");
|
||||
j.IndexerProperty<int>("Idgrupo")
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idgrupo");
|
||||
});
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Propiedade>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.Dnipropietario, "FK_PROP_PROPI");
|
||||
|
||||
entity.HasIndex(e => e.Idtipropiedad, "FK_PROP_TIPO");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Canthabitaciones)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("canthabitaciones");
|
||||
entity.Property(e => e.Dnipropietario)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("dnipropietario");
|
||||
entity.Property(e => e.Idtipropiedad)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idtipropiedad");
|
||||
entity.Property(e => e.Letra)
|
||||
.HasMaxLength(1)
|
||||
.IsFixedLength()
|
||||
.HasColumnName("letra");
|
||||
entity.Property(e => e.Piso)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("piso");
|
||||
entity.Property(e => e.Ubicacion)
|
||||
.HasMaxLength(40)
|
||||
.HasColumnName("ubicacion");
|
||||
|
||||
entity.HasOne(d => d.DnipropietarioNavigation).WithMany(p => p.Propiedades)
|
||||
.HasForeignKey(d => d.Dnipropietario)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_PROP_PROPI");
|
||||
|
||||
entity.HasOne(d => d.IdtipropiedadNavigation).WithMany(p => p.Propiedades)
|
||||
.HasForeignKey(d => d.Idtipropiedad)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_PROP_TIPO");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Recibo>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.ToTable("Recibo");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Fecha)
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("fecha");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasPrecision(12)
|
||||
.HasColumnName("monto");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<TipoPropiedad>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.ToTable("TipoPropiedad");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Descripcion)
|
||||
.HasMaxLength(20)
|
||||
.HasColumnName("descripcion");
|
||||
});
|
||||
|
||||
modelBuilder.Entity<Venta>(entity =>
|
||||
{
|
||||
entity.HasKey(e => e.Id).HasName("PRIMARY");
|
||||
|
||||
entity.HasIndex(e => e.Idestado, "FK_VEN_EST");
|
||||
|
||||
entity.HasIndex(e => e.IdVendedor, "FK_VEN_PROL");
|
||||
|
||||
entity.HasIndex(e => e.IdComprador, "FK_VEN_PRON");
|
||||
|
||||
entity.HasIndex(e => e.Idpropiedad, "FK_VEN_PROP");
|
||||
|
||||
entity.Property(e => e.Id)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("id");
|
||||
entity.Property(e => e.Fechafinal)
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("fechafinal");
|
||||
entity.Property(e => e.Fechainicio)
|
||||
.HasColumnType("date")
|
||||
.HasColumnName("fechainicio");
|
||||
entity.Property(e => e.IdComprador)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idComprador");
|
||||
entity.Property(e => e.IdVendedor)
|
||||
.HasColumnType("bigint(20)")
|
||||
.HasColumnName("idVendedor");
|
||||
entity.Property(e => e.Idestado)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idestado");
|
||||
entity.Property(e => e.Idpropiedad)
|
||||
.HasColumnType("int(11)")
|
||||
.HasColumnName("idpropiedad");
|
||||
entity.Property(e => e.Monto)
|
||||
.HasPrecision(12)
|
||||
.HasColumnName("monto");
|
||||
|
||||
entity.HasOne(d => d.IdCompradorNavigation).WithMany(p => p.VentaIdCompradorNavigations)
|
||||
.HasForeignKey(d => d.IdComprador)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_VEN_PRON");
|
||||
|
||||
entity.HasOne(d => d.IdVendedorNavigation).WithMany(p => p.VentaIdVendedorNavigations)
|
||||
.HasForeignKey(d => d.IdVendedor)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_VEN_PROL");
|
||||
|
||||
entity.HasOne(d => d.IdestadoNavigation).WithMany(p => p.Venta)
|
||||
.HasForeignKey(d => d.Idestado)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_VEN_EST");
|
||||
|
||||
entity.HasOne(d => d.IdpropiedadNavigation).WithMany(p => p.Venta)
|
||||
.HasForeignKey(d => d.Idpropiedad)
|
||||
.OnDelete(DeleteBehavior.Restrict)
|
||||
.HasConstraintName("FK_VEN_PROP");
|
||||
});
|
||||
|
||||
OnModelCreatingPartial(modelBuilder);
|
||||
}
|
||||
|
||||
partial void OnModelCreatingPartial(ModelBuilder modelBuilder);
|
||||
}
|
||||
+4
-4
@@ -5,15 +5,15 @@ namespace Entidades;
|
||||
|
||||
public partial class Canon
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
public int Mes { get; set; }
|
||||
public DateTime Fecha { get; set; }
|
||||
|
||||
public decimal Monto { get; set; }
|
||||
|
||||
public bool Pagado { get; set; }
|
||||
public long? Idrecibo { get; set; }
|
||||
|
||||
public int? Idrecibo { get; set; }
|
||||
public ulong Pagado { get; set; }
|
||||
|
||||
public virtual Recibo? IdreciboNavigation { get; set; }
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class Cliente
|
||||
{
|
||||
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 byte[] Contraseña { get; set; } = null!;
|
||||
|
||||
public string? Token { get; set; }
|
||||
|
||||
public virtual ICollection<Contrato> ContratoDniinquilinoNavigations { get; set; } = new List<Contrato>();
|
||||
|
||||
public virtual ICollection<Contrato> ContratoDnipropietarioNavigations { get; set; } = new List<Contrato>();
|
||||
|
||||
public virtual ICollection<Propiedade> Propiedades { get; set; } = new List<Propiedade>();
|
||||
|
||||
public virtual ICollection<Venta> VentaIdCompradorNavigations { get; set; } = new List<Venta>();
|
||||
|
||||
public virtual ICollection<Venta> VentaIdVendedorNavigations { get; set; } = new List<Venta>();
|
||||
|
||||
public virtual ICollection<Grupo> Idgrupos { get; set; } = new List<Grupo>();
|
||||
}
|
||||
+15
-9
@@ -5,7 +5,7 @@ namespace Entidades;
|
||||
|
||||
public partial class Contrato
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
public DateTime Fechainicio { get; set; }
|
||||
|
||||
@@ -13,23 +13,29 @@ public partial class Contrato
|
||||
|
||||
public decimal Monto { get; set; }
|
||||
|
||||
public int Duracionmeses { get; set; }
|
||||
|
||||
public long? Dniinquilino { get; set; }
|
||||
|
||||
public long? Dnipropietario { get; set; }
|
||||
|
||||
public int? Idpropiedad { get; set; }
|
||||
|
||||
public virtual Inquilino? DniinquilinoNavigation { get; set; }
|
||||
public int Cantgarantemin { get; set; }
|
||||
|
||||
public virtual Propietario? DnipropietarioNavigation { get; set; }
|
||||
public ulong Tieneopcionventa { get; set; }
|
||||
|
||||
public virtual Propiedad? IdpropiedadNavigation { get; set; }
|
||||
public long? Idventa { get; set; }
|
||||
|
||||
public virtual ICollection<Garante> Dnigarantia { get; set; } = new List<Garante>();
|
||||
public virtual ICollection<Defecto> Defectos { get; set; } = new List<Defecto>();
|
||||
|
||||
public virtual Cliente? DniinquilinoNavigation { get; set; }
|
||||
|
||||
public virtual Cliente? DnipropietarioNavigation { get; set; }
|
||||
|
||||
public virtual Propiedade? IdpropiedadNavigation { get; set; }
|
||||
|
||||
public virtual Venta? IdventaNavigation { get; set; }
|
||||
|
||||
public virtual ICollection<Garante> Dnigarantes { get; set; } = new List<Garante>();
|
||||
|
||||
public virtual ICollection<Canon> Idcanons { get; set; } = new List<Canon>();
|
||||
|
||||
public virtual ICollection<Defecto> Iddefectos { get; set; } = new List<Defecto>();
|
||||
}
|
||||
|
||||
@@ -5,15 +5,19 @@ namespace Entidades;
|
||||
|
||||
public partial class Defecto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public long Id { get; set; }
|
||||
|
||||
public string Descripcion { get; set; } = null!;
|
||||
|
||||
public bool Estaarreglado { get; set; }
|
||||
|
||||
public decimal Costo { get; set; }
|
||||
|
||||
public bool Pagainquilino { get; set; }
|
||||
public int? Idestado { get; set; }
|
||||
|
||||
public virtual ICollection<Contrato> Idcontratos { get; set; } = new List<Contrato>();
|
||||
public long? Idcontrato { get; set; }
|
||||
|
||||
public ulong Pagainquilino { get; set; }
|
||||
|
||||
public virtual Contrato? IdcontratoNavigation { get; set; }
|
||||
|
||||
public virtual Estadodefecto? IdestadoNavigation { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Entidades.Dto;
|
||||
|
||||
public class AccessDto {
|
||||
public string Email { get; set; } = null!;
|
||||
public string Redirect { get; set; } = String.Empty;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
namespace Entidades.Dto;
|
||||
|
||||
public class CrearClienteDto {
|
||||
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!;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
namespace Entidades.Dto;
|
||||
|
||||
public class InquilinoDto {
|
||||
public long Dni { get; set; }
|
||||
public string Nombre { get; set; } = "";
|
||||
public string Apellido { get; set; } = "";
|
||||
|
||||
}
|
||||
@@ -1,10 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace Entidades.Dto;
|
||||
|
||||
[NotMapped]
|
||||
public class LoginDto
|
||||
{
|
||||
public string Usuario {get; set;} = string.Empty;
|
||||
public string Contrasena {get; set;} = string.Empty;
|
||||
}
|
||||
public string Email {get; set;} = string.Empty;
|
||||
public string? Contraseña {get; set;} = string.Empty;
|
||||
}
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.8" />
|
||||
<PackageReference Include="MySql.EntityFrameworkCore" Version="8.0.8" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class Estadodefecto
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string Descipcion { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<Defecto> Defectos { get; set; } = new List<Defecto>();
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class Estadoventa
|
||||
{
|
||||
public int Id { get; set; }
|
||||
|
||||
public string? Descripcion { get; set; }
|
||||
|
||||
public virtual ICollection<Venta> Venta { get; set; } = new List<Venta>();
|
||||
}
|
||||
+10
-4
@@ -3,13 +3,19 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class Garante : Usuario
|
||||
public partial class Garante
|
||||
{
|
||||
public string Lugartrabajo { get; set; } = null!;
|
||||
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 Domiciliolaboral { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<Contrato> Idcontratos { get; set; } = new List<Contrato>();
|
||||
|
||||
public virtual ICollection<Grupo> Idgrupos { get; set; } = new List<Grupo>();
|
||||
}
|
||||
|
||||
+2
-6
@@ -9,11 +9,7 @@ public partial class Grupo
|
||||
|
||||
public string Nombre { get; set; } = null!;
|
||||
|
||||
public virtual ICollection<Garante> Dnigarantia { get; set; } = new List<Garante>();
|
||||
public virtual ICollection<Cliente> Idclientes { get; set; } = new List<Cliente>();
|
||||
|
||||
public virtual ICollection<Inquilino> Dniinquilinos { get; set; } = new List<Inquilino>();
|
||||
|
||||
public virtual ICollection<Propietario> Dnipropietarios { get; set; } = new List<Propietario>();
|
||||
|
||||
public virtual ICollection<Rol> Idrols { get; set; } = new List<Rol>();
|
||||
public virtual ICollection<Permiso> Idpermisos { get; set; } = new List<Permiso>();
|
||||
}
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Entidades;
|
||||
|
||||
public partial class Inquilino: Usuario
|
||||
{
|
||||
public virtual ICollection<Contrato> Contratos { get; set; } = new List<Contrato>();
|
||||
|
||||
public virtual ICollection<Grupo> Idgrupos { get; set; } = new List<Grupo>();
|
||||
}
|
||||
@@ -1,824 +0,0 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Entidades;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Entidades.Migrations
|
||||
{
|
||||
[DbContext(typeof(AlquilaFacilContext))]
|
||||
[Migration("20240910000411_Ahora_saque_el_identity")]
|
||||
partial class Ahora_saque_el_identity
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void BuildTargetModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("ContratoCanon", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<int>("Idcanon")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCANON");
|
||||
|
||||
b.HasKey("Idcontrato", "Idcanon")
|
||||
.HasName("PK__CONTRATO__EAB1D189E5C1886B");
|
||||
|
||||
b.HasIndex("Idcanon");
|
||||
|
||||
b.ToTable("CONTRATO_CANON", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoDefecto", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<int>("Iddefecto")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDDEFECTO");
|
||||
|
||||
b.HasKey("Idcontrato", "Iddefecto")
|
||||
.HasName("PK__CONTRATO__3A449B2F445D3682");
|
||||
|
||||
b.HasIndex("Iddefecto");
|
||||
|
||||
b.ToTable("CONTRATO_DEFECTO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoGarantium", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<long>("Dnigarantia")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIGARANTIA");
|
||||
|
||||
b.HasKey("Idcontrato", "Dnigarantia")
|
||||
.HasName("PK__CONTRATO__08D9A618A2AF4EE5");
|
||||
|
||||
b.HasIndex("Dnigarantia");
|
||||
|
||||
b.ToTable("CONTRATO_GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Canon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("Idrecibo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDRECIBO");
|
||||
|
||||
b.Property<int>("Mes")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("MES");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.Property<bool>("Pagado")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("PAGADO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__CANON__3214EC27DAD9CBBD");
|
||||
|
||||
b.HasIndex("Idrecibo");
|
||||
|
||||
b.ToTable("CANON", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Contrato", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<long?>("Dniinquilino")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIINQUILINO");
|
||||
|
||||
b.Property<long?>("Dnipropietario")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIPROPIETARIO");
|
||||
|
||||
b.Property<int>("Duracionmeses")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("DURACIONMESES");
|
||||
|
||||
b.Property<DateTime>("Fechainicio")
|
||||
.HasColumnType("datetime")
|
||||
.HasColumnName("FECHAINICIO");
|
||||
|
||||
b.Property<int?>("Idpropiedad")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDPROPIEDAD");
|
||||
|
||||
b.Property<decimal>("Indiceactualizacion")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("INDICEACTUALIZACION");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__CONTRATO__3214EC27314E1A88");
|
||||
|
||||
b.HasIndex("Dniinquilino");
|
||||
|
||||
b.HasIndex("Dnipropietario");
|
||||
|
||||
b.HasIndex("Idpropiedad");
|
||||
|
||||
b.ToTable("CONTRATO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Defecto", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<decimal>("Costo")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("COSTO");
|
||||
|
||||
b.Property<string>("Descripcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DESCRIPCION");
|
||||
|
||||
b.Property<bool>("Estaarreglado")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("ESTAARREGLADO");
|
||||
|
||||
b.Property<bool>("Pagainquilino")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("PAGAINQUILINO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__DEFECTO__3214EC27E043B726");
|
||||
|
||||
b.ToTable("DEFECTO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Garante", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Domiciliolaboral")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIOLABORAL");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Lugartrabajo")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("LUGARTRABAJO");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__GARANTIA__C035B8DC8E6BAB11");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__GARANTIA__161CF724C0013CA1")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__GARANTIA__6758673E51796017")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__GARANTIA__F46C15900DA7BBE1")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Grupo", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__GRUPO__3214EC2778FB625D");
|
||||
|
||||
b.ToTable("GRUPO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Inquilino", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__INQUILIN__C035B8DC051D254F");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__INQUILIN__161CF724192A8FBF")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__INQUILIN__6758673EB3CC90D6")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__INQUILIN__F46C1590EF9A325E")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("INQUILINO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("Canthabitaciones")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("CANTHABITACIONES");
|
||||
|
||||
b.Property<long?>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Letra")
|
||||
.HasMaxLength(2)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(2)")
|
||||
.HasColumnName("LETRA");
|
||||
|
||||
b.Property<int?>("Piso")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("PISO");
|
||||
|
||||
b.Property<bool?>("Tienecocina")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("TIENECOCINA");
|
||||
|
||||
b.Property<string>("Ubicacion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("UBICACION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__PROPIEDA__3214EC2739D8661A");
|
||||
|
||||
b.HasIndex("Dni");
|
||||
|
||||
b.ToTable("PROPIEDADES", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propietario", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__PROPIETA__C035B8DC136518F4");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__PROPIETA__161CF7246E3AA1B6")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__PROPIETA__6758673E211BCB21")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__PROPIETA__F46C15901A8D2463")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("PROPIETARIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Recibo", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("Mes")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("MES");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__RECIBO__3214EC277135BC90");
|
||||
|
||||
b.ToTable("RECIBO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Rol", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Descipcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasColumnName("DESCIPCION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__ROL__3214EC27DE6A34BE");
|
||||
|
||||
b.ToTable("ROL", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Servicio", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Descripcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DESCRIPCION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__SERVICIO__3214EC27468ADAA2");
|
||||
|
||||
b.HasIndex(new[] { "Descripcion" }, "UQ__SERVICIO__794449EF1A4F44FF")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("SERVICIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.ServicioPropiedade", b =>
|
||||
{
|
||||
b.Property<int?>("Idpropiedad")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDPROPIEDAD");
|
||||
|
||||
b.Property<int?>("Idservicio")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDSERVICIO");
|
||||
|
||||
b.HasIndex("Idpropiedad");
|
||||
|
||||
b.HasIndex("Idservicio");
|
||||
|
||||
b.ToTable("SERVICIO_PROPIEDADES", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoGarantium", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dnigarantia")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIGARANTIA");
|
||||
|
||||
b.HasKey("Idgrupo", "Dnigarantia")
|
||||
.HasName("PK__GRUPO_GA__F9F1F0A3A5F02DDF");
|
||||
|
||||
b.HasIndex("Dnigarantia");
|
||||
|
||||
b.ToTable("GRUPO_GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoInquilino", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dniinquilino")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIINQUILINO");
|
||||
|
||||
b.HasKey("Idgrupo", "Dniinquilino")
|
||||
.HasName("PK__GRUPO_IN__FC8CB8C5DC668E46");
|
||||
|
||||
b.HasIndex("Dniinquilino");
|
||||
|
||||
b.ToTable("GRUPO_INQUILINO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoPropietario", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dnipropietario")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIPROPIETARIO");
|
||||
|
||||
b.HasKey("Idgrupo", "Dnipropietario")
|
||||
.HasName("PK__GRUPO_PR__D5806AB6196637D1");
|
||||
|
||||
b.HasIndex("Dnipropietario");
|
||||
|
||||
b.ToTable("GRUPO_PROPIETARIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoRol", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<int>("Idrol")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDROL");
|
||||
|
||||
b.HasKey("Idgrupo", "Idrol")
|
||||
.HasName("PK__GRUPO_RO__5035D4A88EFB1AF1");
|
||||
|
||||
b.HasIndex("Idrol");
|
||||
|
||||
b.ToTable("GRUPO_ROL", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoCanon", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Canon", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcanon")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCAN__3493CFA7");
|
||||
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__339FAB6E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoDefecto", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2B0A656D");
|
||||
|
||||
b.HasOne("Entidades.Defecto", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Iddefecto")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDDEF__2BFE89A6");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoGarantium", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Garante", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___DNIGA__282DF8C2");
|
||||
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2739D489");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Canon", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Recibo", "IdreciboNavigation")
|
||||
.WithMany("Canons")
|
||||
.HasForeignKey("Idrecibo")
|
||||
.HasConstraintName("FK__CANON__IDRECIBO__540C7B00");
|
||||
|
||||
b.Navigation("IdreciboNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Contrato", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Inquilino", "DniinquilinoNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Dniinquilino")
|
||||
.HasConstraintName("FK__CONTRATO__DNIINQ__01142BA1");
|
||||
|
||||
b.HasOne("Entidades.Propietario", "DnipropietarioNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Dnipropietario")
|
||||
.HasConstraintName("FK__CONTRATO__DNIPRO__02084FDA");
|
||||
|
||||
b.HasOne("Entidades.Propiedad", "IdpropiedadNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Idpropiedad")
|
||||
.HasConstraintName("FK__CONTRATO__IDPROP__02FC7413");
|
||||
|
||||
b.Navigation("DniinquilinoNavigation");
|
||||
|
||||
b.Navigation("DnipropietarioNavigation");
|
||||
|
||||
b.Navigation("IdpropiedadNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propietario", "DniNavigation")
|
||||
.WithMany("Propiedades")
|
||||
.HasForeignKey("Dni")
|
||||
.HasConstraintName("FK__PROPIEDADES__DNI__44FF419A");
|
||||
|
||||
b.Navigation("DniNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.ServicioPropiedade", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propiedad", "IdpropiedadNavigation")
|
||||
.WithMany()
|
||||
.HasForeignKey("Idpropiedad")
|
||||
.HasConstraintName("FK__SERVICIO___IDPRO__49C3F6B7");
|
||||
|
||||
b.HasOne("Entidades.Servicio", "IdservicioNavigation")
|
||||
.WithMany()
|
||||
.HasForeignKey("Idservicio")
|
||||
.HasConstraintName("FK__SERVICIO___IDSER__4AB81AF0");
|
||||
|
||||
b.Navigation("IdpropiedadNavigation");
|
||||
|
||||
b.Navigation("IdservicioNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoGarantium", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Garante", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_GAR__DNIGA__46B27FE2");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_GAR__IDGRU__45BE5BA9");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoInquilino", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Inquilino", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dniinquilino")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_INQ__DNIIN__40058253");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_INQ__IDGRU__3F115E1A");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoPropietario", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propietario", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnipropietario")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_PRO__DNIPR__4A8310C6");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_PRO__IDGRU__498EEC8D");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoRol", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDGRU__3B40CD36");
|
||||
|
||||
b.HasOne("Entidades.Rol", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idrol")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDROL__3C34F16F");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Inquilino", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propietario", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
|
||||
b.Navigation("Propiedades");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Recibo", b =>
|
||||
{
|
||||
b.Navigation("Canons");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,584 +0,0 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Entidades.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class Ahora_saque_el_identity : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.CreateTable(
|
||||
name: "DEFECTO",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
DESCRIPCION = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
ESTAARREGLADO = table.Column<bool>(type: "bit", nullable: false),
|
||||
COSTO = table.Column<decimal>(type: "decimal(12,2)", nullable: false),
|
||||
PAGAINQUILINO = table.Column<bool>(type: "bit", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__DEFECTO__3214EC27E043B726", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GARANTIA",
|
||||
columns: table => new
|
||||
{
|
||||
DNI = table.Column<long>(type: "bigint", nullable: false),
|
||||
LUGARTRABAJO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
DOMICILIOLABORAL = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CUIL = table.Column<long>(type: "bigint", nullable: false),
|
||||
NOMBRE = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
APELLIDO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
EMAIL = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CELULAR = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
DOMICILIO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CONTRASENA = table.Column<byte[]>(type: "varbinary(64)", maxLength: 64, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GARANTIA__C035B8DC8E6BAB11", x => x.DNI);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GRUPO",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
NOMBRE = table.Column<string>(type: "varchar(20)", unicode: false, maxLength: 20, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GRUPO__3214EC2778FB625D", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "INQUILINO",
|
||||
columns: table => new
|
||||
{
|
||||
DNI = table.Column<long>(type: "bigint", nullable: false),
|
||||
CUIL = table.Column<long>(type: "bigint", nullable: false),
|
||||
NOMBRE = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
APELLIDO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
EMAIL = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CELULAR = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
DOMICILIO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CONTRASENA = table.Column<byte[]>(type: "varbinary(64)", maxLength: 64, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__INQUILIN__C035B8DC051D254F", x => x.DNI);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PROPIETARIO",
|
||||
columns: table => new
|
||||
{
|
||||
DNI = table.Column<long>(type: "bigint", nullable: false),
|
||||
CUIL = table.Column<long>(type: "bigint", nullable: false),
|
||||
NOMBRE = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
APELLIDO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
EMAIL = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CELULAR = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
DOMICILIO = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CONTRASENA = table.Column<byte[]>(type: "varbinary(64)", maxLength: 64, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__PROPIETA__C035B8DC136518F4", x => x.DNI);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "RECIBO",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
MES = table.Column<int>(type: "int", nullable: false),
|
||||
MONTO = table.Column<decimal>(type: "decimal(12,2)", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__RECIBO__3214EC277135BC90", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "ROL",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
DESCIPCION = table.Column<string>(type: "varchar(20)", unicode: false, maxLength: 20, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__ROL__3214EC27DE6A34BE", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "SERVICIO",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
DESCRIPCION = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__SERVICIO__3214EC27468ADAA2", x => x.ID);
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GRUPO_GARANTIA",
|
||||
columns: table => new
|
||||
{
|
||||
IDGRUPO = table.Column<int>(type: "int", nullable: false),
|
||||
DNIGARANTIA = table.Column<long>(type: "bigint", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GRUPO_GA__F9F1F0A3A5F02DDF", x => new { x.IDGRUPO, x.DNIGARANTIA });
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_GAR__DNIGA__46B27FE2",
|
||||
column: x => x.DNIGARANTIA,
|
||||
principalTable: "GARANTIA",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_GAR__IDGRU__45BE5BA9",
|
||||
column: x => x.IDGRUPO,
|
||||
principalTable: "GRUPO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GRUPO_INQUILINO",
|
||||
columns: table => new
|
||||
{
|
||||
IDGRUPO = table.Column<int>(type: "int", nullable: false),
|
||||
DNIINQUILINO = table.Column<long>(type: "bigint", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GRUPO_IN__FC8CB8C5DC668E46", x => new { x.IDGRUPO, x.DNIINQUILINO });
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_INQ__DNIIN__40058253",
|
||||
column: x => x.DNIINQUILINO,
|
||||
principalTable: "INQUILINO",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_INQ__IDGRU__3F115E1A",
|
||||
column: x => x.IDGRUPO,
|
||||
principalTable: "GRUPO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GRUPO_PROPIETARIO",
|
||||
columns: table => new
|
||||
{
|
||||
IDGRUPO = table.Column<int>(type: "int", nullable: false),
|
||||
DNIPROPIETARIO = table.Column<long>(type: "bigint", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GRUPO_PR__D5806AB6196637D1", x => new { x.IDGRUPO, x.DNIPROPIETARIO });
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_PRO__DNIPR__4A8310C6",
|
||||
column: x => x.DNIPROPIETARIO,
|
||||
principalTable: "PROPIETARIO",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_PRO__IDGRU__498EEC8D",
|
||||
column: x => x.IDGRUPO,
|
||||
principalTable: "GRUPO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "PROPIEDADES",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
DNI = table.Column<long>(type: "bigint", nullable: true),
|
||||
UBICACION = table.Column<string>(type: "varchar(50)", unicode: false, maxLength: 50, nullable: false),
|
||||
CANTHABITACIONES = table.Column<int>(type: "int", nullable: true),
|
||||
TIENECOCINA = table.Column<bool>(type: "bit", nullable: true),
|
||||
PISO = table.Column<int>(type: "int", nullable: true),
|
||||
LETRA = table.Column<string>(type: "varchar(2)", unicode: false, maxLength: 2, nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__PROPIEDA__3214EC2739D8661A", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK__PROPIEDADES__DNI__44FF419A",
|
||||
column: x => x.DNI,
|
||||
principalTable: "PROPIETARIO",
|
||||
principalColumn: "DNI");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CANON",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
MES = table.Column<int>(type: "int", nullable: false),
|
||||
MONTO = table.Column<decimal>(type: "decimal(12,2)", nullable: false),
|
||||
PAGADO = table.Column<bool>(type: "bit", nullable: false),
|
||||
IDRECIBO = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__CANON__3214EC27DAD9CBBD", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK__CANON__IDRECIBO__540C7B00",
|
||||
column: x => x.IDRECIBO,
|
||||
principalTable: "RECIBO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "GRUPO_ROL",
|
||||
columns: table => new
|
||||
{
|
||||
IDGRUPO = table.Column<int>(type: "int", nullable: false),
|
||||
IDROL = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__GRUPO_RO__5035D4A88EFB1AF1", x => new { x.IDGRUPO, x.IDROL });
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_ROL__IDGRU__3B40CD36",
|
||||
column: x => x.IDGRUPO,
|
||||
principalTable: "GRUPO",
|
||||
principalColumn: "ID");
|
||||
table.ForeignKey(
|
||||
name: "FK__GRUPO_ROL__IDROL__3C34F16F",
|
||||
column: x => x.IDROL,
|
||||
principalTable: "ROL",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CONTRATO",
|
||||
columns: table => new
|
||||
{
|
||||
ID = table.Column<int>(type: "int", nullable: false)
|
||||
.Annotation("SqlServer:Identity", "1, 1"),
|
||||
FECHAINICIO = table.Column<DateTime>(type: "datetime", nullable: false),
|
||||
INDICEACTUALIZACION = table.Column<decimal>(type: "decimal(12,2)", nullable: false),
|
||||
MONTO = table.Column<decimal>(type: "decimal(12,2)", nullable: false),
|
||||
DURACIONMESES = table.Column<int>(type: "int", nullable: false),
|
||||
DNIINQUILINO = table.Column<long>(type: "bigint", nullable: true),
|
||||
DNIPROPIETARIO = table.Column<long>(type: "bigint", nullable: true),
|
||||
IDPROPIEDAD = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__CONTRATO__3214EC27314E1A88", x => x.ID);
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO__DNIINQ__01142BA1",
|
||||
column: x => x.DNIINQUILINO,
|
||||
principalTable: "INQUILINO",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO__DNIPRO__02084FDA",
|
||||
column: x => x.DNIPROPIETARIO,
|
||||
principalTable: "PROPIETARIO",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO__IDPROP__02FC7413",
|
||||
column: x => x.IDPROPIEDAD,
|
||||
principalTable: "PROPIEDADES",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "SERVICIO_PROPIEDADES",
|
||||
columns: table => new
|
||||
{
|
||||
IDPROPIEDAD = table.Column<int>(type: "int", nullable: true),
|
||||
IDSERVICIO = table.Column<int>(type: "int", nullable: true)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.ForeignKey(
|
||||
name: "FK__SERVICIO___IDPRO__49C3F6B7",
|
||||
column: x => x.IDPROPIEDAD,
|
||||
principalTable: "PROPIEDADES",
|
||||
principalColumn: "ID");
|
||||
table.ForeignKey(
|
||||
name: "FK__SERVICIO___IDSER__4AB81AF0",
|
||||
column: x => x.IDSERVICIO,
|
||||
principalTable: "SERVICIO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CONTRATO_CANON",
|
||||
columns: table => new
|
||||
{
|
||||
IDCONTRATO = table.Column<int>(type: "int", nullable: false),
|
||||
IDCANON = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__CONTRATO__EAB1D189E5C1886B", x => new { x.IDCONTRATO, x.IDCANON });
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___IDCAN__3493CFA7",
|
||||
column: x => x.IDCANON,
|
||||
principalTable: "CANON",
|
||||
principalColumn: "ID");
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___IDCON__339FAB6E",
|
||||
column: x => x.IDCONTRATO,
|
||||
principalTable: "CONTRATO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CONTRATO_DEFECTO",
|
||||
columns: table => new
|
||||
{
|
||||
IDCONTRATO = table.Column<int>(type: "int", nullable: false),
|
||||
IDDEFECTO = table.Column<int>(type: "int", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__CONTRATO__3A449B2F445D3682", x => new { x.IDCONTRATO, x.IDDEFECTO });
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___IDCON__2B0A656D",
|
||||
column: x => x.IDCONTRATO,
|
||||
principalTable: "CONTRATO",
|
||||
principalColumn: "ID");
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___IDDEF__2BFE89A6",
|
||||
column: x => x.IDDEFECTO,
|
||||
principalTable: "DEFECTO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateTable(
|
||||
name: "CONTRATO_GARANTIA",
|
||||
columns: table => new
|
||||
{
|
||||
IDCONTRATO = table.Column<int>(type: "int", nullable: false),
|
||||
DNIGARANTIA = table.Column<long>(type: "bigint", nullable: false)
|
||||
},
|
||||
constraints: table =>
|
||||
{
|
||||
table.PrimaryKey("PK__CONTRATO__08D9A618A2AF4EE5", x => new { x.IDCONTRATO, x.DNIGARANTIA });
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___DNIGA__282DF8C2",
|
||||
column: x => x.DNIGARANTIA,
|
||||
principalTable: "GARANTIA",
|
||||
principalColumn: "DNI");
|
||||
table.ForeignKey(
|
||||
name: "FK__CONTRATO___IDCON__2739D489",
|
||||
column: x => x.IDCONTRATO,
|
||||
principalTable: "CONTRATO",
|
||||
principalColumn: "ID");
|
||||
});
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CANON_IDRECIBO",
|
||||
table: "CANON",
|
||||
column: "IDRECIBO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_DNIINQUILINO",
|
||||
table: "CONTRATO",
|
||||
column: "DNIINQUILINO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_DNIPROPIETARIO",
|
||||
table: "CONTRATO",
|
||||
column: "DNIPROPIETARIO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_IDPROPIEDAD",
|
||||
table: "CONTRATO",
|
||||
column: "IDPROPIEDAD");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_CANON_IDCANON",
|
||||
table: "CONTRATO_CANON",
|
||||
column: "IDCANON");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_DEFECTO_IDDEFECTO",
|
||||
table: "CONTRATO_DEFECTO",
|
||||
column: "IDDEFECTO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_CONTRATO_GARANTIA_DNIGARANTIA",
|
||||
table: "CONTRATO_GARANTIA",
|
||||
column: "DNIGARANTIA");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__GARANTIA__161CF724C0013CA1",
|
||||
table: "GARANTIA",
|
||||
column: "EMAIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__GARANTIA__6758673E51796017",
|
||||
table: "GARANTIA",
|
||||
column: "CELULAR",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__GARANTIA__F46C15900DA7BBE1",
|
||||
table: "GARANTIA",
|
||||
column: "CUIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GRUPO_GARANTIA_DNIGARANTIA",
|
||||
table: "GRUPO_GARANTIA",
|
||||
column: "DNIGARANTIA");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GRUPO_INQUILINO_DNIINQUILINO",
|
||||
table: "GRUPO_INQUILINO",
|
||||
column: "DNIINQUILINO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GRUPO_PROPIETARIO_DNIPROPIETARIO",
|
||||
table: "GRUPO_PROPIETARIO",
|
||||
column: "DNIPROPIETARIO");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_GRUPO_ROL_IDROL",
|
||||
table: "GRUPO_ROL",
|
||||
column: "IDROL");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__INQUILIN__161CF724192A8FBF",
|
||||
table: "INQUILINO",
|
||||
column: "EMAIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__INQUILIN__6758673EB3CC90D6",
|
||||
table: "INQUILINO",
|
||||
column: "CELULAR",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__INQUILIN__F46C1590EF9A325E",
|
||||
table: "INQUILINO",
|
||||
column: "CUIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_PROPIEDADES_DNI",
|
||||
table: "PROPIEDADES",
|
||||
column: "DNI");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__PROPIETA__161CF7246E3AA1B6",
|
||||
table: "PROPIETARIO",
|
||||
column: "EMAIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__PROPIETA__6758673E211BCB21",
|
||||
table: "PROPIETARIO",
|
||||
column: "CELULAR",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__PROPIETA__F46C15901A8D2463",
|
||||
table: "PROPIETARIO",
|
||||
column: "CUIL",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "UQ__SERVICIO__794449EF1A4F44FF",
|
||||
table: "SERVICIO",
|
||||
column: "DESCRIPCION",
|
||||
unique: true);
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_SERVICIO_PROPIEDADES_IDPROPIEDAD",
|
||||
table: "SERVICIO_PROPIEDADES",
|
||||
column: "IDPROPIEDAD");
|
||||
|
||||
migrationBuilder.CreateIndex(
|
||||
name: "IX_SERVICIO_PROPIEDADES_IDSERVICIO",
|
||||
table: "SERVICIO_PROPIEDADES",
|
||||
column: "IDSERVICIO");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropTable(
|
||||
name: "CONTRATO_CANON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CONTRATO_DEFECTO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CONTRATO_GARANTIA");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GRUPO_GARANTIA");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GRUPO_INQUILINO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GRUPO_PROPIETARIO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GRUPO_ROL");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "SERVICIO_PROPIEDADES");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CANON");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "DEFECTO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "CONTRATO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GARANTIA");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "GRUPO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "ROL");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "SERVICIO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "RECIBO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "INQUILINO");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PROPIEDADES");
|
||||
|
||||
migrationBuilder.DropTable(
|
||||
name: "PROPIETARIO");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,821 +0,0 @@
|
||||
// <auto-generated />
|
||||
using System;
|
||||
using Entidades;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Metadata;
|
||||
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace Entidades.Migrations
|
||||
{
|
||||
[DbContext(typeof(AlquilaFacilContext))]
|
||||
partial class AlquilaFacilContextModelSnapshot : ModelSnapshot
|
||||
{
|
||||
protected override void BuildModel(ModelBuilder modelBuilder)
|
||||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "8.0.8")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 128);
|
||||
|
||||
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
|
||||
|
||||
modelBuilder.Entity("ContratoCanon", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<int>("Idcanon")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCANON");
|
||||
|
||||
b.HasKey("Idcontrato", "Idcanon")
|
||||
.HasName("PK__CONTRATO__EAB1D189E5C1886B");
|
||||
|
||||
b.HasIndex("Idcanon");
|
||||
|
||||
b.ToTable("CONTRATO_CANON", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoDefecto", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<int>("Iddefecto")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDDEFECTO");
|
||||
|
||||
b.HasKey("Idcontrato", "Iddefecto")
|
||||
.HasName("PK__CONTRATO__3A449B2F445D3682");
|
||||
|
||||
b.HasIndex("Iddefecto");
|
||||
|
||||
b.ToTable("CONTRATO_DEFECTO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoGarantium", b =>
|
||||
{
|
||||
b.Property<int>("Idcontrato")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDCONTRATO");
|
||||
|
||||
b.Property<long>("Dnigarantia")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIGARANTIA");
|
||||
|
||||
b.HasKey("Idcontrato", "Dnigarantia")
|
||||
.HasName("PK__CONTRATO__08D9A618A2AF4EE5");
|
||||
|
||||
b.HasIndex("Dnigarantia");
|
||||
|
||||
b.ToTable("CONTRATO_GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Canon", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("Idrecibo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDRECIBO");
|
||||
|
||||
b.Property<int>("Mes")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("MES");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.Property<bool>("Pagado")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("PAGADO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__CANON__3214EC27DAD9CBBD");
|
||||
|
||||
b.HasIndex("Idrecibo");
|
||||
|
||||
b.ToTable("CANON", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Contrato", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<long?>("Dniinquilino")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIINQUILINO");
|
||||
|
||||
b.Property<long?>("Dnipropietario")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIPROPIETARIO");
|
||||
|
||||
b.Property<int>("Duracionmeses")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("DURACIONMESES");
|
||||
|
||||
b.Property<DateTime>("Fechainicio")
|
||||
.HasColumnType("datetime")
|
||||
.HasColumnName("FECHAINICIO");
|
||||
|
||||
b.Property<int?>("Idpropiedad")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDPROPIEDAD");
|
||||
|
||||
b.Property<decimal>("Indiceactualizacion")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("INDICEACTUALIZACION");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__CONTRATO__3214EC27314E1A88");
|
||||
|
||||
b.HasIndex("Dniinquilino");
|
||||
|
||||
b.HasIndex("Dnipropietario");
|
||||
|
||||
b.HasIndex("Idpropiedad");
|
||||
|
||||
b.ToTable("CONTRATO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Defecto", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<decimal>("Costo")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("COSTO");
|
||||
|
||||
b.Property<string>("Descripcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DESCRIPCION");
|
||||
|
||||
b.Property<bool>("Estaarreglado")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("ESTAARREGLADO");
|
||||
|
||||
b.Property<bool>("Pagainquilino")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("PAGAINQUILINO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__DEFECTO__3214EC27E043B726");
|
||||
|
||||
b.ToTable("DEFECTO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Garante", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Domiciliolaboral")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIOLABORAL");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Lugartrabajo")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("LUGARTRABAJO");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__GARANTIA__C035B8DC8E6BAB11");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__GARANTIA__161CF724C0013CA1")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__GARANTIA__6758673E51796017")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__GARANTIA__F46C15900DA7BBE1")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Grupo", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__GRUPO__3214EC2778FB625D");
|
||||
|
||||
b.ToTable("GRUPO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Inquilino", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__INQUILIN__C035B8DC051D254F");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__INQUILIN__161CF724192A8FBF")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__INQUILIN__6758673EB3CC90D6")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__INQUILIN__F46C1590EF9A325E")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("INQUILINO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int?>("Canthabitaciones")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("CANTHABITACIONES");
|
||||
|
||||
b.Property<long?>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Letra")
|
||||
.HasMaxLength(2)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(2)")
|
||||
.HasColumnName("LETRA");
|
||||
|
||||
b.Property<int?>("Piso")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("PISO");
|
||||
|
||||
b.Property<bool?>("Tienecocina")
|
||||
.HasColumnType("bit")
|
||||
.HasColumnName("TIENECOCINA");
|
||||
|
||||
b.Property<string>("Ubicacion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("UBICACION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__PROPIEDA__3214EC2739D8661A");
|
||||
|
||||
b.HasIndex("Dni");
|
||||
|
||||
b.ToTable("PROPIEDADES", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propietario", b =>
|
||||
{
|
||||
b.Property<long>("Dni")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNI");
|
||||
|
||||
b.Property<string>("Apellido")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("APELLIDO");
|
||||
|
||||
b.Property<string>("Celular")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("CELULAR");
|
||||
|
||||
b.Property<byte[]>("Contrasena")
|
||||
.HasMaxLength(64)
|
||||
.HasColumnType("varbinary(64)")
|
||||
.HasColumnName("CONTRASENA");
|
||||
|
||||
b.Property<long>("Cuil")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("CUIL");
|
||||
|
||||
b.Property<string>("Domicilio")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DOMICILIO");
|
||||
|
||||
b.Property<string>("Email")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("EMAIL");
|
||||
|
||||
b.Property<string>("Nombre")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("NOMBRE");
|
||||
|
||||
b.HasKey("Dni")
|
||||
.HasName("PK__PROPIETA__C035B8DC136518F4");
|
||||
|
||||
b.HasIndex(new[] { "Email" }, "UQ__PROPIETA__161CF7246E3AA1B6")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Celular" }, "UQ__PROPIETA__6758673E211BCB21")
|
||||
.IsUnique();
|
||||
|
||||
b.HasIndex(new[] { "Cuil" }, "UQ__PROPIETA__F46C15901A8D2463")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("PROPIETARIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Recibo", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<int>("Mes")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("MES");
|
||||
|
||||
b.Property<decimal>("Monto")
|
||||
.HasColumnType("decimal(12, 2)")
|
||||
.HasColumnName("MONTO");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__RECIBO__3214EC277135BC90");
|
||||
|
||||
b.ToTable("RECIBO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Rol", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Descipcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(20)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(20)")
|
||||
.HasColumnName("DESCIPCION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__ROL__3214EC27DE6A34BE");
|
||||
|
||||
b.ToTable("ROL", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Servicio", b =>
|
||||
{
|
||||
b.Property<int>("Id")
|
||||
.ValueGeneratedOnAdd()
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("ID");
|
||||
|
||||
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<int>("Id"));
|
||||
|
||||
b.Property<string>("Descripcion")
|
||||
.IsRequired()
|
||||
.HasMaxLength(50)
|
||||
.IsUnicode(false)
|
||||
.HasColumnType("varchar(50)")
|
||||
.HasColumnName("DESCRIPCION");
|
||||
|
||||
b.HasKey("Id")
|
||||
.HasName("PK__SERVICIO__3214EC27468ADAA2");
|
||||
|
||||
b.HasIndex(new[] { "Descripcion" }, "UQ__SERVICIO__794449EF1A4F44FF")
|
||||
.IsUnique();
|
||||
|
||||
b.ToTable("SERVICIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.ServicioPropiedade", b =>
|
||||
{
|
||||
b.Property<int?>("Idpropiedad")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDPROPIEDAD");
|
||||
|
||||
b.Property<int?>("Idservicio")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDSERVICIO");
|
||||
|
||||
b.HasIndex("Idpropiedad");
|
||||
|
||||
b.HasIndex("Idservicio");
|
||||
|
||||
b.ToTable("SERVICIO_PROPIEDADES", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoGarantium", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dnigarantia")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIGARANTIA");
|
||||
|
||||
b.HasKey("Idgrupo", "Dnigarantia")
|
||||
.HasName("PK__GRUPO_GA__F9F1F0A3A5F02DDF");
|
||||
|
||||
b.HasIndex("Dnigarantia");
|
||||
|
||||
b.ToTable("GRUPO_GARANTIA", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoInquilino", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dniinquilino")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIINQUILINO");
|
||||
|
||||
b.HasKey("Idgrupo", "Dniinquilino")
|
||||
.HasName("PK__GRUPO_IN__FC8CB8C5DC668E46");
|
||||
|
||||
b.HasIndex("Dniinquilino");
|
||||
|
||||
b.ToTable("GRUPO_INQUILINO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoPropietario", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<long>("Dnipropietario")
|
||||
.HasColumnType("bigint")
|
||||
.HasColumnName("DNIPROPIETARIO");
|
||||
|
||||
b.HasKey("Idgrupo", "Dnipropietario")
|
||||
.HasName("PK__GRUPO_PR__D5806AB6196637D1");
|
||||
|
||||
b.HasIndex("Dnipropietario");
|
||||
|
||||
b.ToTable("GRUPO_PROPIETARIO", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoRol", b =>
|
||||
{
|
||||
b.Property<int>("Idgrupo")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDGRUPO");
|
||||
|
||||
b.Property<int>("Idrol")
|
||||
.HasColumnType("int")
|
||||
.HasColumnName("IDROL");
|
||||
|
||||
b.HasKey("Idgrupo", "Idrol")
|
||||
.HasName("PK__GRUPO_RO__5035D4A88EFB1AF1");
|
||||
|
||||
b.HasIndex("Idrol");
|
||||
|
||||
b.ToTable("GRUPO_ROL", (string)null);
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoCanon", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Canon", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcanon")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCAN__3493CFA7");
|
||||
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__339FAB6E");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoDefecto", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2B0A656D");
|
||||
|
||||
b.HasOne("Entidades.Defecto", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Iddefecto")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDDEF__2BFE89A6");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("ContratoGarantium", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Garante", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___DNIGA__282DF8C2");
|
||||
|
||||
b.HasOne("Entidades.Contrato", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idcontrato")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__CONTRATO___IDCON__2739D489");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Canon", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Recibo", "IdreciboNavigation")
|
||||
.WithMany("Canons")
|
||||
.HasForeignKey("Idrecibo")
|
||||
.HasConstraintName("FK__CANON__IDRECIBO__540C7B00");
|
||||
|
||||
b.Navigation("IdreciboNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Contrato", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Inquilino", "DniinquilinoNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Dniinquilino")
|
||||
.HasConstraintName("FK__CONTRATO__DNIINQ__01142BA1");
|
||||
|
||||
b.HasOne("Entidades.Propietario", "DnipropietarioNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Dnipropietario")
|
||||
.HasConstraintName("FK__CONTRATO__DNIPRO__02084FDA");
|
||||
|
||||
b.HasOne("Entidades.Propiedad", "IdpropiedadNavigation")
|
||||
.WithMany("Contratos")
|
||||
.HasForeignKey("Idpropiedad")
|
||||
.HasConstraintName("FK__CONTRATO__IDPROP__02FC7413");
|
||||
|
||||
b.Navigation("DniinquilinoNavigation");
|
||||
|
||||
b.Navigation("DnipropietarioNavigation");
|
||||
|
||||
b.Navigation("IdpropiedadNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propietario", "DniNavigation")
|
||||
.WithMany("Propiedades")
|
||||
.HasForeignKey("Dni")
|
||||
.HasConstraintName("FK__PROPIEDADES__DNI__44FF419A");
|
||||
|
||||
b.Navigation("DniNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.ServicioPropiedade", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propiedad", "IdpropiedadNavigation")
|
||||
.WithMany()
|
||||
.HasForeignKey("Idpropiedad")
|
||||
.HasConstraintName("FK__SERVICIO___IDPRO__49C3F6B7");
|
||||
|
||||
b.HasOne("Entidades.Servicio", "IdservicioNavigation")
|
||||
.WithMany()
|
||||
.HasForeignKey("Idservicio")
|
||||
.HasConstraintName("FK__SERVICIO___IDSER__4AB81AF0");
|
||||
|
||||
b.Navigation("IdpropiedadNavigation");
|
||||
|
||||
b.Navigation("IdservicioNavigation");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoGarantium", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Garante", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnigarantia")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_GAR__DNIGA__46B27FE2");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_GAR__IDGRU__45BE5BA9");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoInquilino", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Inquilino", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dniinquilino")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_INQ__DNIIN__40058253");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_INQ__IDGRU__3F115E1A");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoPropietario", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Propietario", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Dnipropietario")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_PRO__DNIPR__4A8310C6");
|
||||
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_PRO__IDGRU__498EEC8D");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("GrupoRol", b =>
|
||||
{
|
||||
b.HasOne("Entidades.Grupo", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idgrupo")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDGRU__3B40CD36");
|
||||
|
||||
b.HasOne("Entidades.Rol", null)
|
||||
.WithMany()
|
||||
.HasForeignKey("Idrol")
|
||||
.IsRequired()
|
||||
.HasConstraintName("FK__GRUPO_ROL__IDROL__3C34F16F");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Inquilino", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propiedad", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Propietario", b =>
|
||||
{
|
||||
b.Navigation("Contratos");
|
||||
|
||||
b.Navigation("Propiedades");
|
||||
});
|
||||
|
||||
modelBuilder.Entity("Entidades.Recibo", b =>
|
||||
{
|
||||
b.Navigation("Canons");
|
||||
});
|
||||
#pragma warning restore 612, 618
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user