36 lines
851 B
C#
36 lines
851 B
C#
using System.ComponentModel.DataAnnotations;
|
|
|
|
namespace Asistencia.Models;
|
|
|
|
public class Profesor
|
|
{
|
|
[Key]
|
|
[MaxLength(20)]
|
|
public string RutPasaporte { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string Nombre { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string Paterno { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string Materno { get; set; } = string.Empty;
|
|
|
|
[MaxLength(200)]
|
|
public string Email { get; set; } = string.Empty;
|
|
|
|
[MaxLength(20)]
|
|
public string Fono { get; set; } = string.Empty;
|
|
|
|
[MaxLength(300)]
|
|
public string Direccion { get; set; } = string.Empty;
|
|
|
|
[MaxLength(500)]
|
|
public string Clave { get; set; } = string.Empty;
|
|
|
|
public bool CrearClave { get; set; }
|
|
|
|
public string NombreCompleto => $"{Nombre} {Paterno} {Materno}".Trim();
|
|
}
|