/// <summary> /// Constructor that takes a dbmanager as argument /// </summary> /// <param name="database"></param> public UserStore(UserTable <IdentityMember> userTable, RoleTable roleTable, UserRolesTable userRolesTable, UserClaimsTable userClaimsTable, UserLoginsTable userLoginsTable, UnitOfWorkFactory uowFactory) { _userTable = userTable; _roleTable = roleTable; _userRolesTable = userRolesTable; _userClaimsTable = userClaimsTable; _userLoginsTable = userLoginsTable; _uowFactory = uowFactory; }
/// <summary> /// Default constructor that initializes a new database /// instance using the Default Connection string /// </summary> //public RoleStore() //{ // new RoleStore<TRole>(new DbManager(ConfigurationManager.ConnectionStrings["DefaultConnection"].ConnectionString)); //} /// <summary> /// Constructor that takes a dbmanager as argument /// </summary> /// <param name="database"></param> public RoleStore(RoleTable roleTable, UnitOfWorkFactory uowFactory) { _roleTable = roleTable; _uowFactory = uowFactory; }