Example #1
0
        public IActionResult Index()
        {
            MVCEFCoreContext db = new MVCEFCoreContext();

            HttpContext.Session.GetObject <dynamic>("CurrentUser");
            return(Json(db.Employees.ToList()));
        }
 public EmployeeRepo(MVCEFCoreContext context) : base(context)
 {
 }
 public GenericRepository(MVCEFCoreContext context)
 {
     this.context = context;
     dbset        = context.Set <T>();
 }
Example #4
0
 public UnitOfWork(IEmployeeRepo employeeRepo, MVCEFCoreContext db)
 {
     _employeeRepo = employeeRepo;
     _db           = db;
 }
 public UnitOfWorkService(MVCEFCoreContext context)
 {
     _dbContext = context;
 }