[CSHARP-4381] Implement IParsable on ObjectId Created: 25/Oct/22 Updated: 28/Oct/22 |
|
| Status: | Backlog |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Unknown |
| Reporter: | Fred Morel | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | net7 | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Please add a .NET 7 target and use it to implement the `IParsable` interface on ObjectId. https://learn.microsoft.com/en-us/dotnet/api/system.iparsable-1?view=net-7.0
This will help improve the performance of binding ObjectIds in API requests https://learn.microsoft.com/en-us/aspnet/core/mvc/models/model-binding?view=aspnetcore-7.0#bind-with-iparsablettryparse |
| Comments |
| Comment by Boris Dogadov [ 28/Oct/22 ] |
|
Thank you for the suggestion fred.morel@onepeloton.com, Currently we don't have a target date for .net7 target framework support, but we'll consider this functionality when adding .net7. |