añadido entidades

This commit is contained in:
2024-08-30 03:21:03 -03:00
parent 2ce2a3ce01
commit 30db290c5f
3 changed files with 46 additions and 0 deletions

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@
/Entidades/obj/Debug/net8.0/Modelo.AssemblyInfo.cs
/Modelo/obj/Debug/net8.0/Modelo.AssemblyInfoInputs.cache
/Modelo/obj/
/Entidades/bin/
/Entidades/obj/

View File

@@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

35
Entidades/Inquilino.cs Normal file
View File

@@ -0,0 +1,35 @@
using System.ComponentModel.DataAnnotations;
namespace Entidades{
public class Inquilino
{
public string Dni{ get; set; }
public string Cuil{get; set;}
public string Nombre{get; set;}
public string Apellido {get; set;}
public string Email {
get
{
return _email;
}
set
{
if (value.Contains("@"))
{
_email =value;
}
}
}
public Int64 Celular{get; set;}
public string Domicilio {get; set;}
private string _email;
}
}