public GenericRepository(ISbsDbContext context)
        {
            if (context == null)
            {
                throw new ArgumentException("An instance of DbContext is required to use this repository.", "context");
            }

            this.Context = context;
            this.DbSet   = this.Context.Set <T>();
        }
Exemplo n.º 2
0
 public UsersRepository(ISbsDbContext context)
     : base(context)
 {
 }
Exemplo n.º 3
0
 public SbsData(ISbsDbContext context)
 {
     this.context = context;
 }
Exemplo n.º 4
0
 public DeletableEntityRepository(ISbsDbContext context)
     : base(context)
 {
 }