Tuesday, 17 April 2018

Adding Mongo Db/database connection in Web.config file(Local database & Remote Db )

  <!--local Mongo-->
    <add key="MongoDbConnectionString" value="mongodb://localhost:27017" />
    <add key="MongoDb" value="local" />

  <!--RemoteMongo-->

 <add key="MongoDbConnectionString" value="mongodb://testuser:password@ipaddress:27017/Test" />
    <add key="MongoDb" value="DBTest" />




No comments:

Post a Comment