Пример #1
0
        public Repository(ISmartHiveEntities dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("Context cant be null");
            }

            this.Context = dbContext;
        }
Пример #2
0
        public UnitOfWork(ISmartHiveEntities dbContext)
        {
            if (dbContext == null)
            {
                throw new ArgumentNullException("Context cant be null");
            }

            this.dbContext = dbContext;
        }