Skip to content

Commit

Permalink
upgrade mongo driver version
Browse files Browse the repository at this point in the history
  • Loading branch information
dj-nitehawk committed Dec 14, 2023
1 parent 7d7c0c2 commit 4746012
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 23 deletions.
4 changes: 2 additions & 2 deletions Benchmark/Benchmark.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.10"/>
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.22.0"/>
<PackageReference Include="BenchmarkDotNet" Version="0.13.11"/>
<PackageReference Include="MongoDB.Driver.GridFS" Version="2.23.0"/>
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions MongoDB.Entities/MongoDB.Entities.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>

<Version>23.0.0</Version>
<Version>23.0.1</Version>

<TargetFramework>netstandard2.1</TargetFramework>
<RootNamespace>MongoDB.Entities</RootNamespace>
Expand Down Expand Up @@ -31,7 +31,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0"/>
<PackageReference Include="MongoDB.Driver" Version="2.22.0"/>
<PackageReference Include="MongoDB.Driver" Version="2.23.0"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
</ItemGroup>

Expand Down
22 changes: 3 additions & 19 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,7 @@
### NEW

ability to use any type for primary key property and ability to name it based on mongodb conventions when implementing `IEntity` interface.

**NOTE:** due to a technical constraint, only the following primary key types are supported with referenced relationships.

- string
- long
- ObjectId

see #195 for more info.
[//]: # (### NEW)

### IMPROVEMENTS

- `Entity.ID` property has been made non-nullable #210
- support for dictionary based index keys #206
- upgrade mongodb driver to v2.22
- various internal code refactors and optimizations

### BREAKING CHANGES
- upgrade mongodb driver to v2.23

- `Many<T>` is now `Many<TChild,TParent>` when defining referenced relationships. i.e. you now need to specify the type of the parent class that contains the property.
- `IEntity.GenerateNewID()` & `IEntity.HasDefaultID()` method must be implemented by entities if implementing `IEntity` directly.
[//]: # (### BREAKING CHANGES)

0 comments on commit 4746012

Please sign in to comment.