mongodb .net core 调用
时间:2021-07-01 10:21:17
帮助过:20人阅读
pethome",
"username",
"pwd");
MongoClientSettings settings =
new MongoClientSettings
{
Credentials =
new List<MongoCredential>
() {credential},
Server =
new MongoServerAddress(
"ip")
};
_client =
new MongoClient(settings);
_db = _client.GetDatabase(
"pethome");
mongodb .net core 调用
标签:nts color net use add mon set list ddr