コード例 #1
0
 //public IEnumerable<Object> get()
 //{
 //    return context.Clientes.Include("Categoria").Select(c => new
 //    {
 //        Id = c.ID,
 //        Nombre = c.Nombre,
 //        Apellido = c.Apellido,
 //        Edad = c.Edad,
 //        Categoria = new
 //        {
 //            Nombre = c.Categoria.Nombre
 //        },
 //        Gustos = c.Gustos.Select(g => new
 //        {
 //            ID = g.ID,
 //            Nombre = g.Nombre
 //        })
 //    });
 //}
 public JuezController()
 {
     this.context = new CarcelDbContext();
 }
コード例 #2
0
 public DelitosController()
 {
     context = new CarcelDbContext();
 }
コード例 #3
0
 public PresosController()
 {
     this.context = new CarcelDbContext();
 }
コード例 #4
0
 //public IEnumerable<Object> get()
 //{
 //    return context.Clientes.Include("Categoria").Select(c => new
 //    {
 //        Id = c.ID,
 //        Nombre = c.Nombre,
 //        Apellido = c.Apellido,
 //        Edad = c.Edad,
 //        Categoria = new
 //        {
 //            Nombre = c.Categoria.Nombre
 //        },
 //        Gustos = c.Gustos.Select(g => new
 //        {
 //            ID = g.ID,
 //            Nombre = g.Nombre
 //        })
 //    });
 //}
 public CondenaDelitoController()
 {
     this.context = new CarcelDbContext();
 }
コード例 #5
0
ファイル: CondenaController.cs プロジェクト: pandrec/Carcel
 public CondenaController()
 {
     context = new CarcelDbContext();
 }
コード例 #6
0
 public JuecesController()
 {
     context = new CarcelDbContext();
 }
コード例 #7
0
 public LoginController()
 {
     this.context = new CarcelDbContext();
 }
コード例 #8
0
ファイル: PresoController.cs プロジェクト: pandrec/Carcel
 public PresoController()
 {
     context = new CarcelDbContext();
 }