예제 #1
0
        public UnitOfWork(CompanyStoresContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            _context = context;
        }
예제 #2
0
        protected BaseRepository(CompanyStoresContext context)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }

            Context = context;
            DbSet   = Context.Set <T>();
        }
예제 #3
0
 public StoreRepository(CompanyStoresContext context) : base(context)
 {
 }