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

            this.context = context;

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

            this.dbContext = dbContext;
        }