예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 /// <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);
 }