public List <DM_NHAN_VIEN> GetListNhanVien() { using (var uow = new IVTContext()) { List <DM_NHAN_VIEN> listResult = uow.DM_NHAN_VIEN.ToList(); return(listResult); } }
public List<DM_NHAN_VIEN> GetListNhanVien() { using(var uow = new IVTContext()) { List<DM_NHAN_VIEN> listResult = uow.DM_NHAN_VIEN.ToList(); return listResult; } }
public UnitOfWork() { _context = new IVTContext(); }
public UnitOfWork(IVTContext context) { _context = context; }
public Repository(IVTContext context) { this._context = context; this._dbSet = context.Set <TEntity>(); }