StrongTypedId.EntityFrameworkCore
1.9.2
dotnet add package StrongTypedId.EntityFrameworkCore --version 1.9.2
NuGet\Install-Package StrongTypedId.EntityFrameworkCore -Version 1.9.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="StrongTypedId.EntityFrameworkCore" Version="1.9.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add StrongTypedId.EntityFrameworkCore --version 1.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: StrongTypedId.EntityFrameworkCore, 1.9.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install StrongTypedId.EntityFrameworkCore as a Cake Addin #addin nuget:?package=StrongTypedId.EntityFrameworkCore&version=1.9.2 // Install StrongTypedId.EntityFrameworkCore as a Cake Tool #tool nuget:?package=StrongTypedId.EntityFrameworkCore&version=1.9.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
StrongTypedId.EntityFrameworkCore
This package provides support for using StrongTypedId with EntityFrameworkCore.
Usage
Add the converter to EF in your DbContext
class like this:
protected override void ConfigureConventions(ModelConfigurationBuilder configurationBuilder)
{
configurationBuilder
.Properties<UserId>()
.HaveConversion<StrongTypedIdValueConverter<UserId, Guid>>();
}
And that's all there is to it, now any of your entities can use the UserId
type instead of Guid
.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- Microsoft.EntityFrameworkCore (>= 8.0.10)
- StrongTypedId (>= 1.9.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.9.2 | 81 | 11/15/2024 |
1.9.1 | 69 | 11/13/2024 |
1.9.0 | 80 | 11/11/2024 |
1.8.0 | 110 | 8/26/2024 |
1.7.0 | 106 | 5/10/2024 |
1.6.6 | 128 | 2/9/2024 |
1.6.5 | 119 | 2/5/2024 |
1.6.4 | 111 | 1/31/2024 |
1.6.3 | 158 | 1/8/2024 |
1.6.2 | 151 | 10/10/2023 |
1.6.1 | 168 | 9/8/2023 |
1.6.0 | 183 | 7/18/2023 |
1.5.1 | 176 | 7/15/2023 |
1.5.0 | 181 | 7/15/2023 |
1.4.3 | 163 | 7/11/2023 |
1.4.2 | 152 | 7/11/2023 |
1.4.1 | 140 | 7/11/2023 |
1.4.0 | 167 | 7/10/2023 |
1.3.0 | 178 | 5/21/2023 |
1.2.0 | 298 | 1/21/2023 |
1.1.4 | 447 | 7/10/2022 |
1.1.3 | 426 | 7/10/2022 |
1.1.2 | 422 | 5/12/2022 |
1.1.1 | 433 | 3/12/2022 |