Skip to content

Commit 4f70b28

Browse files
authored
Update README.md
1 parent a32d40d commit 4f70b28

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
1-
Identifiers.EntityFrameworkCore
2-
===============================
1+
Identifiers.EntityFrameworkCore.SqlServer
2+
=========================================
33

4-
[![NuGet](https://img.shields.io/nuget/dt/Identifiers.EntityFrameworkCore.svg)](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore)
5-
[![NuGet](https://img.shields.io/nuget/vpre/Identifiers.EntityFrameworkCore.svg)](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore)
4+
[![NuGet](https://img.shields.io/nuget/dt/Identifiers.EntityFrameworkCore.SqlServer.svg)](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore.SqlServer)
5+
[![NuGet](https://img.shields.io/nuget/vpre/Identifiers.EntityFrameworkCore.SqlServer.svg)](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore.SqlServer)
66

77
### Summary
88

9-
The Identifiers.EntityFrameworkCore library is an extension on [Identifiers](https://github.com/HenkKin/Identifiers/).
9+
The Identifiers.EntityFrameworkCore.SqlServer library is an extension on [Identifiers](https://github.com/HenkKin/Identifiers/).
1010

1111
This library is Cross-platform, supporting `netstandard2.1`.
1212

1313

14-
### Installing Identifiers.EntityFrameworkCore
14+
### Installing Identifiers.EntityFrameworkCore.SqlServer
1515

16-
You should install [Identifiers.EntityFrameworkCore with NuGet](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore):
16+
You should install [Identifiers.EntityFrameworkCore.SqlServer with NuGet](https://www.nuget.org/packages/Identifiers.EntityFrameworkCore.SqlServer):
1717

18-
Install-Package Identifiers.EntityFrameworkCore
18+
Install-Package Identifiers.EntityFrameworkCore.SqlServer
1919

2020
Or via the .NET Core command line interface:
2121

22-
dotnet add package Identifiers.EntityFrameworkCore
22+
dotnet add package Identifiers.EntityFrameworkCore.SqlServer
2323

24-
Either commands, from Package Manager Console or .NET Core CLI, will download and install Identifiers.EntityFrameworkCore and all required dependencies.
24+
Either commands, from Package Manager Console or .NET Core CLI, will download and install Identifiers.EntityFrameworkCore.SqlServer and all required dependencies.
2525

2626
### Dependencies
2727

@@ -31,14 +31,14 @@ Either commands, from Package Manager Console or .NET Core CLI, will download an
3131

3232
### Usage
3333

34-
IIf you're using EntityFrameworkCore and you want to use this Identifier type in your entities, then you can use [Identifiers.EntityFrameworkCore](https://github.com/HenkKin/Identifiers.EntityFrameworkCore/) package which includes a `DbContextOptionsBuilder.UseIdentifiers<[InternalClrType:short|int|long|Guid]>()` extension method, allowing you to register all needed IValueConverterSelectors and IMigrationsAnnotationProviders.
34+
IIf you're using EntityFrameworkCore and you want to use this Identifier type in your entities, then you can use [Identifiers.EntityFrameworkCore.SqlServer](https://github.com/HenkKin/Identifiers.EntityFrameworkCore.SqlServer/) package which includes a `DbContextOptionsBuilder.UseIdentifiers<[InternalClrType:short|int|long|Guid]>()` extension method, allowing you to register all needed IValueConverterSelectors and IMigrationsAnnotationProviders.
3535
It also includes a `PropertyBuilder<Identifier>.IdentifierValueGeneratedOnAdd()` extension method, allowing you to register all needed configuration to use `SqlServerValueGenerationStrategy.IdentityColumn`.
3636

3737
To use it:
3838

3939
```csharp
4040
...
41-
using Identifiers.EntityFrameworkCore;
41+
using Identifiers.EntityFrameworkCore.SqlServer;
4242

4343
public class Startup
4444
{
@@ -67,7 +67,8 @@ Using the PropertyBuilder:
6767

6868
```csharp
6969
...
70-
using Identifiers.EntityFrameworkCore;
70+
using Identifiers.EntityFrameworkCore.SqlServer;
71+
7172
public class YourDbContext : DbContext
7273
{
7374
...

0 commit comments

Comments
 (0)