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

            uow.GetDbSet<Item>();
        }