añadido entidades
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -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/
|
||||
|
||||
9
Entidades/Entidades.csproj
Normal file
9
Entidades/Entidades.csproj
Normal 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
35
Entidades/Inquilino.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user