- Modelos renombrados para coincidir con columnas de MariaDB (ApPaterno/ApMaterno, HoraSalida, FechaFin, IdAsistenciaProfesor) - Agregado campo IdAlumno a DetalleContrato - Seed data con IDs reales de produccion (16451, 16493, profesor 15668563-1) - Login offline: solo valida RUT contra BD local, sin contraseña - ConnectivityService: checkea internet al inicio, bloquea si hay conexion - ViewLocator corregido: busca tipos en todos los ensamblados - Todos los ViewModels heredan de ViewModelBase - Publicacion self-contained para win-x64, linux-x64, osx-x64, osx-arm64 - Agregado .gitignore, removidos bin/obj/publish del tracking
38 lines
905 B
C#
38 lines
905 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 ApPaterno { get; set; } = string.Empty;
|
|
|
|
[MaxLength(100)]
|
|
public string ApMaterno { 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 bool Activo { get; set; } = true;
|
|
|
|
public string NombreCompleto => $"{Nombre} {ApPaterno} {ApMaterno}".Trim();
|
|
}
|