Method | Description | |
---|---|---|
AddLoginAsync ( |
INSERT operation for adding an external login such as Google for a new or existing account.
|
|
CreateAsync ( |
INSERT operation for a new user.
|
|
DeleteAsync ( |
DELETE operation for a user. This is not currently used, but required by .NET Identity.
|
|
Dispose ( ) : void | ||
FindAsync ( Microsoft.AspNet.Identity.UserLoginInfo login ) : Task |
SELECT operation for getting the user object associated with a specific external login
|
|
FindByIdAsync ( string userId ) : Task |
SELECT operation for finding a user by the Id value. Our Id is currently a GUID but this can be another data type as well.
|
|
FindByNameAsync ( string userName ) : Task |
SELECT operation for finding a user by the username.
|
|
GetLoginsAsync ( |
SELECT operation for getting external logins for a user account.
|
|
GetPasswordHashAsync ( |
Method for getting teh password hash for the user account.
|
|
GetSecurityStampAsync ( |
Method for getting the security stamp for the user account.
|
|
HasPasswordAsync ( |
Method for checking if an account has a password hash.
|
|
RemoveLoginAsync ( |
DELETE operation for removing an external login from an existing user account.
|
|
SetPasswordHashAsync ( |
Method for setting the password hash for the user account. This hash is used to encode the users password.
|
|
SetSecurityStampAsync ( |
Method for setting the security stamp for the user account.
|
|
UpdateAsync ( |
UPDATE operation for updating a user.
|
|
UserRepository ( IConnectionFactory connectionFactory ) : System |
User Repository constructor passing injected connection factory to the Base Repository
|
public AddLoginAsync ( |
||
user | The User object that will be associated with the external login information. | |
login | Microsoft.AspNet.Identity.UserLoginInfo | The user login information. This object is constructed during the callback from the external authority. |
return | System.Threading.Tasks.Task |
public CreateAsync ( |
||
user | The User object must be passed in. We create this during the Register Action. | |
return | System.Threading.Tasks.Task |
public DeleteAsync ( |
||
user | The User object | |
return | System.Threading.Tasks.Task |
public FindAsync ( Microsoft.AspNet.Identity.UserLoginInfo login ) : Task |
||
login | Microsoft.AspNet.Identity.UserLoginInfo | The external account |
return | Task |
public FindByIdAsync ( string userId ) : Task |
||
userId | string | The Id of the user object. |
return | Task |
public FindByNameAsync ( string userName ) : Task |
||
userName | string | The username of the user object. |
return | Task |
public GetLoginsAsync ( |
||
user | The user account to get external login information for. | |
return | Task |
public GetPasswordHashAsync ( |
||
user | The user to get the password hash for. | |
return | Task |
public GetSecurityStampAsync ( |
||
user | The user to get the security stamp for. | |
return | Task |
public HasPasswordAsync ( |
||
user | The user to check for an existing password hash. | |
return | Task |
public RemoveLoginAsync ( |
||
user | The user object that the external login will be removed from. | |
login | Microsoft.AspNet.Identity.UserLoginInfo | The external login that will be removed from the user account. |
return | System.Threading.Tasks.Task |
public SetPasswordHashAsync ( |
||
user | The user to has the password for. | |
passwordHash | string | The password has to use. |
return | System.Threading.Tasks.Task |
public SetSecurityStampAsync ( |
||
user | The user to set the security stamp for. | |
stamp | string | The stamp to set. |
return | System.Threading.Tasks.Task |
public UpdateAsync ( |
||
user | The user that will be updated. The updated values must be passed in to this method. | |
return | System.Threading.Tasks.Task |
public UserRepository ( IConnectionFactory connectionFactory ) : System | ||
connectionFactory | IConnectionFactory | The injected connection factory. It is injected with the constructor argument that is the connection string. |
return | System |