Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Last active Jan 9, 2021
Embed
What would you like to do?
Models/Estudiante.cs
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text.Json.Serialization;
namespace UniversidadWebsite.Models
{
[Table("Estudiantes")]
public class Estudiante
{
[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; }
public string Cedula { get; set; }
public string Nombre { get; set; }
public DateTime FechaNacimiento { get; set; }
public int Semestre { get; set; }
public string Foto { get; set; }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment