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