Exemple #1
0
        public EfRepository(IBrandviserDbContext context)
        {
            Guard.WhenArgument(context, nameof(IBrandviserDbContext)).IsNull().Throw();

            this.context = context;

            this.DbSet = this.context.Set <T>();
        }
Exemple #2
0
        public BrandviserData(IBrandviserDbContext dbContext)
        {
            Guard.WhenArgument(dbContext, nameof(IBrandviserDbContext)).IsNull().Throw();

            this.dbContext = dbContext;
        }