GetUserCollectionName() public static method

public static GetUserCollectionName ( ) : String
return String
示例#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;
 }
示例#2
0
        public static void Initialize(String connectionNameOrUrl)
        {
            IMongoCollection <TUser> collection = MongoDBUtilities.GetDatabase(connectionNameOrUrl).GetCollection <TUser>(MongoDBUtilities.GetUserCollectionName());

            EnsureIndexes.UserStore <TUser>(collection);
        }