コード例 #1
0
 private CouchDbMembershipUserRepository getMembershipRepository()
 {
     if (membershipRepository == null)
     {
         membershipRepository = new CouchDbMembershipUserRepository(couchDbServerName, couchDbServerPort, couchDbDatabaseName);
     }
     return(membershipRepository);
 }
コード例 #2
0
 internal CouchDbMembershipUserRepository getRepository()
 {
     if (repository == null)
     {
         repository =
             new CouchDbMembershipUserRepository(
                 ConfigurationHelper.MembershipCouchDbServerName,
                 ConfigurationHelper.MembershipCouchDbServerPort,
                 ConfigurationHelper.MembershipCouchDbDatabaseName);
     }
     return(repository);
 }
コード例 #3
0
        public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
        {
            var db = new CouchDbMembershipUserRepository(couchDbServerName, couchDbServerPort, couchDbDatabaseName);

            totalRecords = 0;

            var returnCollection = new MembershipUserCollection();

            foreach (dynamic mu in db.GetAll())
            {
                returnCollection.Add(CouchDbMembershipUser.FromDynamicDbResponse(mu.value));
            }

            return(returnCollection);
        }
コード例 #4
0
 internal CouchDbMembershipUserRepository getRepository()
 {
     if (repository == null) repository = 
         new CouchDbMembershipUserRepository(
             ConfigurationHelper.MembershipCouchDbServerName, 
             ConfigurationHelper.MembershipCouchDbServerPort, 
             ConfigurationHelper.MembershipCouchDbDatabaseName);
     return repository;
 }
コード例 #5
0
 private CouchDbMembershipUserRepository getRepository()
 {
     if(repository == null)
         repository = new CouchDbMembershipUserRepository(couchDbServerName, couchDbServerPort, couchDbDatabaseName);
     return repository;
 }
コード例 #6
0
        public override MembershipUserCollection GetAllUsers(int pageIndex, int pageSize, out int totalRecords)
        {
            var db = new CouchDbMembershipUserRepository(couchDbServerName, couchDbServerPort, couchDbDatabaseName);

            totalRecords = 0;

            var returnCollection = new MembershipUserCollection();

            foreach (dynamic mu in db.GetAll())
            {
                returnCollection.Add(CouchDbMembershipUser.FromDynamicDbResponse(mu.value));
            }
            
            return returnCollection;
        }