SistemaEscolar: Escuela.cs
using System.Collections.Generic; | |
using System.ComponentModel.DataAnnotations; | |
using System.ComponentModel.DataAnnotations.Schema; | |
namespace SistemaEscolar.Modelos | |
{ | |
public class Escuela | |
{ | |
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] | |
[Key] | |
public int Id { get; set; } | |
public string Nombre { get; set; } | |
public List<Alumno> Alumnos { get; set; } | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment