public TravelRepository(IRideShareContext context) : base(context) { base.collection = () => nameof(context.Travels); }
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 }