Пример #1
0
 public void Write(string tema, string fecha)
 {
     using (GlobalDbContext dbContext = new GlobalDbContext())
     {
         TFC tfc = new TFC()
         {
             Tema  = tema,
             Fecha = fecha
         };
         dbContext.Add(tfc);
         dbContext.SaveChanges();
     }
 }
Пример #2
0
 public void Write(string nombre_grupo, int num_componente)
 {
     using (GlobalDbContext dbContext = new GlobalDbContext())
     {
         Grupo grupo = new Grupo()
         {
             Nombre_grupo   = nombre_grupo,
             Num_componente = num_componente
         };
         dbContext.Add(grupo);
         dbContext.SaveChanges();
     }
 }
 public void Write(int dni, string nombre)
 {
     using (GlobalDbContext dbContext = new GlobalDbContext())
     {
         Alumno alumno = new Alumno()
         {
             Dni    = dni,
             Nombre = nombre
         };
         dbContext.Add(alumno);
         dbContext.SaveChanges();
     }
 }
 public void Write(string lugar_examen, int num_componentes)
 {
     using (GlobalDbContext dbContext = new GlobalDbContext())
     {
         Tribunal tribunal = new Tribunal()
         {
             Lugar_Examen    = lugar_examen,
             Num_Componentes = num_componentes
         };
         dbContext.Add(tribunal);
         dbContext.SaveChanges();
     }
 }
Пример #5
0
 public void Write(int dni, string nombre, string domicilio)
 {
     using (GlobalDbContext dbContext = new GlobalDbContext())
     {
         Profesor profesor = new Profesor()
         {
             DNI       = dni,
             Nombre    = nombre,
             Domicilio = domicilio
         };
         dbContext.Add(profesor);
         dbContext.SaveChanges();
     }
 }