Ejemplo n.º 1
0
        public MongoRepositoryImpl(MongoConnectionStringBuilder builder)
        {
            builder.ShouldNotBeNull("builder");

            if (IsDebugEnabled)
            {
                log.Debug("MongoRepositoryImpl 인스턴스를 생성합니다... connectionString=[{0}]", builder.ConnectionString);
            }

            Server         = builder.CreateMongoServer();
            DatabaseName   = builder.DatabaseName;
            CollectionName = MongoTool.DefaultCollectionName;
        }