Пример #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);
 }