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

GetRoleCollectionName() 공개 정적인 메소드

public static GetRoleCollectionName ( ) : String
리턴 String
		public static String GetRoleCollectionName() {
			if (String.IsNullOrWhiteSpace(roleCollectionName)) {
				roleCollectionName = MongoDBIdentitySettings.Settings != null ? MongoDBIdentitySettings.Settings.RoleCollectionName : "role";
			}
			return roleCollectionName;
		}

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::GetRoleCollectionName