Skip to content

Commit

Permalink
Update dependency MongoDB.Driver to v2.19.0 (#337)
Browse files Browse the repository at this point in the history
* Update dependency MongoDB.Driver to v2.19.0

* Set LINQ provider to v2 for compatibility

* Configure the settings correctly

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Turnerj <[email protected]>
  • Loading branch information
renovate[bot] and Turnerj authored Feb 26, 2023
1 parent 8a5d02c commit 5cc5910
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/MongoFramework/MongoDbConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ public IMongoClient Client

if (InternalClient == null)
{
InternalClient = new MongoClient(Url);
var settings = MongoClientSettings.FromUrl(Url);
settings.LinqProvider = MongoDB.Driver.Linq.LinqProvider.V2;
InternalClient = new MongoClient(settings);
}

return InternalClient;
Expand Down
2 changes: 1 addition & 1 deletion src/MongoFramework/MongoFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="MongoDB.Driver" Version="2.18.0" />
<PackageReference Include="MongoDB.Driver" Version="2.19.0" />
<PackageReference Include="System.ComponentModel.Annotations" Version="5.0.0" />
<PackageReference Include="System.Configuration.ConfigurationManager" Version="7.0.0" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="7.0.0" />
Expand Down

0 comments on commit 5cc5910

Please sign in to comment.