Exemplo n.º 1
0
 /// <summary>
 /// Constructor that takes a SQLiteIdenitityDbContext as argument
 /// </summary>
 /// <param name="database"></param>
 public UserStore(SQLiteIdenitityDbContext database)
 {
     DisposeContext  = false;
     Database        = database;
     userTable       = new UserTable <TUser>(database);
     roleTable       = new RoleTable <TRole>(database);
     userRolesTable  = new UserRolesTable(database);
     userClaimsTable = new UserClaimsTable(database);
     userLoginsTable = new UserLoginsTable(database);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Constructor that takes a SQLiteIdenitityDbContext instance
 /// </summary>
 /// <param name="database"></param>
 public UserTable(SQLiteIdenitityDbContext database)
 {
     _database = database;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor that takes a SQLiteIdenitityDbContext as argument
 /// </summary>
 /// <param name="database"></param>
 public RoleStore(SQLiteIdenitityDbContext database)
 {
     DisposeContext = false;
     Database       = database;
     roleTable      = new RoleTable <TRole>(database);
 }