public void Add(object item)
 {
     unitOfWork.GetDbSet(item.GetType()).Add(item);
 }
Пример #2
0
 public IEnumerable <IUser> Query(Expression <Func <IUser, bool> > criteria)
 {
     return(_unitOfWork.GetDbSet <Employee>().Where(criteria));
 }
Пример #3
0
        public void TestMethod1()
        {
            var uow = new EntityFrameworkUnitOfWork(new CoreDataContext());

            uow.GetDbSet<Item>();
        }