This commit is contained in:
ansonzhang 2021-04-30 10:51:12 +08:00 committed by GitHub
parent 9aa805af0c
commit bdea9208f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ namespace Blog.Core.Repository.MongoRepository
public MongoDbContext()
{
var client = new MongoClient(Appsettings.app(new string[] { "Mongo", "ConnectString" }));
var client = new MongoClient(Appsettings.app(new string[] { "Mongo", "ConnectionString" }));
if (client != null)
_database = client.GetDatabase(Appsettings.app(new string[] { "Mongo", "Database" }));
}