public UserRepo(DbContextOptions <TxtXContext> options) { Db = new TxtXContext(options); Table = Db.Set <User>(); }
protected BaseRepo(TxtXContext context) { _db = context; table = _db.Set <T>(); }
protected BaseRepo(DbContextOptions options) { _db = new TxtXContext(options); table = _db.Set <T>(); }
protected BaseRepo() { _db = new TxtXContext(); table = _db.Set <T>(); }