Files
asistencia-desktop/Asistencia/Models/DetalleContrato.cs
T

31 lines
742 B
C#

using System.ComponentModel.DataAnnotations;
namespace Asistencia.Models;
public class DetalleContrato
{
[Key]
public int IdDetalleContrato { get; set; }
public int IdCursoAbierto { get; set; }
[MaxLength(100)]
public string AP_Paterno { get; set; } = string.Empty;
[MaxLength(100)]
public string AP_Materno { get; set; } = string.Empty;
[MaxLength(100)]
public string Nombres { get; set; } = string.Empty;
[MaxLength(200)]
public string Email { get; set; } = string.Empty;
[MaxLength(20)]
public string Telefono { get; set; } = string.Empty;
public CursoAbierto? CursoAbierto { get; set; }
public string NombreCompleto => $"{Nombres} {AP_Paterno} {AP_Materno}".Trim();
}