public static GetUserCollectionName ( ) : String | ||
return | String |
public static String GetUserCollectionName() {
if (String.IsNullOrWhiteSpace(userCollectionName)) {
userCollectionName = MongoDBIdentitySettings.Settings != null ? MongoDBIdentitySettings.Settings.UserCollectionName : "user";
}
return userCollectionName;
}
public UserStore(String connectionNameOrUrl) { this.database = MongoDBUtilities.GetDatabase(connectionNameOrUrl); this.collection = database.GetCollection <TUser>(MongoDBUtilities.GetUserCollectionName()); this.roleCollection = database.GetCollection <IdentityRole>(MongoDBUtilities.GetRoleCollectionName()); this.disposed = false; }