36 lines
570 B
C#
36 lines
570 B
C#
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;
|
|
}
|
|
}
|