示例#1
0
        public EfRepository(ICarManiacsDbContext context)
        {
            Guard.WhenArgument(context, "dbContext").IsNull().Throw();

            this.context = context;
            this.dbSet   = this.context.Set <T>();
        }
示例#2
0
 public EfUnitOfWorkMock(ICarManiacsDbContext context) : base(context)
 {
 }
示例#3
0
        public EfUnitOfWork(ICarManiacsDbContext context)
        {
            Guard.WhenArgument(context, "dbContext").IsNull().Throw();

            this.dbContext = context;
        }