mirror of
https://github.com/anjoy8/Blog.Core.git
synced 2024-09-20 23:48:27 +08:00
Fixed #180 Bug
This commit is contained in:
parent
9aa805af0c
commit
bdea9208f6
|
@ -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" }));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user