Advertisement
ingomarmurcia

MyDbContext.cs

Apr 6th, 2020
472
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Data.Entity;
  4. using System.Linq;
  5. using System.Web;
  6.  
  7. namespace ADSProjectLab.Models.Context
  8. {
  9.     public class MyDbContext : DbContext
  10.     {
  11.         public MyDbContext() : base("DefaultConnection")
  12.         {
  13.         }
  14.  
  15.         public DbSet<Carrera> Carrera { get; set; }
  16.         public DbSet<Materia> Materia { get; set; }
  17.         public DbSet<Profesor> Profesor { get; set; }
  18.         public DbSet<Estudiante> Estudiante { get; set; }
  19.         public DbSet<Grupo> Grupo { get; set; }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement