Exemplo n.º 1
0
 public TravelRepository(IRideShareContext context) : base(context)
 {
     base.collection = () => nameof(context.Travels);
 }
Exemplo n.º 2
0
 public UserRepository(IRideShareContext context) : base(context)
 {
     base.collection = () => nameof(context.Users);
 }
Exemplo n.º 3
0
 public BaseRepository(IRideShareContext context)
 {
     this.context = context;
     set          = (ctx) => ctx.Set <TEntity>(collection()); // default set method
 }