/// <summary> /// Constructor that takes a PostgreSQLDatabase as argument. /// </summary> /// <param name="database"></param> public UserStore(PostgreSQLDatabase database) { Database = database; userTable = new UserTable <TUser>(database); roleTable = new RoleTable(database); userRolesTable = new UserRolesTable(database); userClaimsTable = new UserClaimsTable(database); userLoginsTable = new UserLoginsTable(database); }
/// <summary> /// Constructor that takes a PostgreSQLDatabase as argument. /// </summary> /// <param name="connection"></param> public UserStore(IDbConnection connection) { _database = new SqlDatabase(connection); _userTable = new UserTable <IdentityUser>(_database); _roleTable = new RoleTable(_database); _userRolesTable = new UserRolesTable(_database); _userClaimsTable = new UserClaimsTable(_database); _userLoginsTable = new UserLoginsTable(_database); }
/// <summary> /// Constructor that takes a PostgreSQLDatabase as argument. /// </summary> /// <param name="database"></param> public RoleStore(PostgreSQLDatabase database) { this.Database = database; this.roleTable = new RoleTable(database); }
/// <summary> /// Constructor that takes a PostgreSQLDatabase as argument. /// </summary> /// <param name="connection"></param> public RoleStore(IDbConnection connection) { _database = new SqlDatabase(connection); _roleTable = new RoleTable(_database); }