示例#1
0
文件: MongoHelper.cs 项目: sp0x/donut
        public static IMongoDatabase GetDatabase()
        {
            var dbc = DonutDbConfig.GetConfig();

            return(GetDatabase(dbc));
        }
示例#2
0
文件: MongoHelper.cs 项目: sp0x/donut
        public static IMongoCollection <BsonDocument> GetCollection(string collectionName)
        {
            var config = DonutDbConfig.GetConfig();

            return(GetCollection(config, collectionName));
        }
示例#3
0
文件: MongoHelper.cs 项目: sp0x/donut
        public static IMongoCollection <T> GetCollection <T>(string collectionName)
        {
            var config = DonutDbConfig.GetConfig();

            return(GetCollection <T>(config, collectionName));
        }