Skip to content

Commit 6fca2a0

Browse files
committed
Update ReadMe to EF Core 5.0
1 parent 21cc7fa commit 6fca2a0

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
1212

1313
- [Visual Studio 2019](https://www.visualstudio.com/downloads/) 16.8 Preview 4.0 or greater.
1414
- .[NET Core 5.0 SDK](https://dotnet.microsoft.com/download/dotnet/5.0) RC2 or greater.
15-
- [EF Core CLI 5.0](https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-ef-core-5-rc2/) RC2 or greater.
15+
- [EF Core CLI 5.0](https://devblogs.microsoft.com/dotnet/announcing-entity-framework-core-ef-core-5-rc2/) or greater.
1616
- Install global `dotnet-ef` tool.
1717
```
18-
dotnet tool install --global dotnet-ef --version 5.0.0-rc.2.20475.6
18+
dotnet tool install --global dotnet-ef
1919
```
2020
- Update global `dotnet-ef` tool.
2121
```
22-
dotnet tool update --global dotnet-ef --version 5.0.0-rc.2.20475.6
22+
dotnet tool update --global dotnet-ef
2323
```
2424
2525
## Database Setup
@@ -34,7 +34,7 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
3434
## Usage
3535
3636
1. Create a new **.NET Core** class library.
37-
- If necessary, edit the csproj file to update the **TargetFramework** to 3.1.
37+
- If necessary, edit the csproj file to update the **TargetFramework** to 3.1 or 5.0
3838
3939
> **Note**: Using the EF Core toolchain with a _.NET Standard_ class library is currently not supported. Instead, you can add a .NET Standard class library to the same solution as the .NET Core library, then add existing items and select **Add As Link** to include entity classes.
4040
@@ -43,15 +43,15 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
4343
- `Microsoft.EntityFrameworkCore.Design`
4444
4545
```
46-
dotnet add package Microsoft.EntityFrameworkCore.SqlServer --version 5.0.0-rc.2.20475.6
47-
dotnet add package Microsoft.EntityFrameworkCore.Design --version 5.0.0-rc.2.20475.6
46+
dotnet add package Microsoft.EntityFrameworkCore.SqlServer
47+
dotnet add package Microsoft.EntityFrameworkCore.Design
4848
```
4949
5050
3. Add the **EntityFrameworkCore.Scaffolding.Handlebars** NuGet package:
5151
- `EntityFrameworkCore.Scaffolding.Handlebars`
5252
5353
```
54-
dotnet add package EntityFrameworkCore.Scaffolding.Handlebars --version 5.0.0-rc.2
54+
dotnet add package EntityFrameworkCore.Scaffolding.Handlebars
5555
```
5656
5757
4. Remove Class1.cs and add a **ScaffoldingDesignTimeServices** class.
@@ -65,8 +65,7 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
6565
{
6666
public void ConfigureDesignTimeServices(IServiceCollection services)
6767
{
68-
services.AddHandlebarsScaffolding(options =>
69-
options.ReverseEngineerOptions = ReverseEngineerOptions.DbContextAndEntities);
68+
services.AddHandlebarsScaffolding();
7069
}
7170
}
7271
```

0 commit comments

Comments
 (0)