AspNet.Identity.MongoDB.MongoDBUtilities.GetUserCollectionName C# (CSharp) 메소드

GetUserCollectionName() 공개 정적인 메소드

public static GetUserCollectionName ( ) : String
리턴 String
		public static String GetUserCollectionName() {
			if (String.IsNullOrWhiteSpace(userCollectionName)) {
				userCollectionName = MongoDBIdentitySettings.Settings != null ? MongoDBIdentitySettings.Settings.UserCollectionName : "user";
			}
			return userCollectionName;
		}

Usage Example

예제 #1
0
 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;
 }
All Usage Examples Of AspNet.Identity.MongoDB.MongoDBUtilities::GetUserCollectionName