Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created May 11, 2018 12:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/ef1569ea8c033e30dd199c290d8dc26d to your computer and use it in GitHub Desktop.
Save icebeam7/ef1569ea8c033e30dd199c290d8dc26d to your computer and use it in GitHub Desktop.
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