You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,9 +14,9 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
14
14
15
15
## Prerequisites
16
16
17
-
-[Visual Studio 2022](https://www.visualstudio.com/downloads/) or greater, [JetBrains Rider](https://www.jetbrains.com/rider)2021.3 or greater.
18
-
-[.NET Core 6.0 SDK](https://dotnet.microsoft.com/download/dotnet/6.0) or greater.
19
-
-[EF Core CLI 6.0](https://docs.microsoft.com/en-us/ef/core/cli/dotnet) or greater.
17
+
-[Visual Studio 2022](https://www.visualstudio.com/downloads/) or greater, [JetBrains Rider](https://www.jetbrains.com/rider)2022.2 or greater.
18
+
-[.NET 7.0 SDK](https://dotnet.microsoft.com/download/dotnet/7.0) or greater.
19
+
-[EF Core CLI 7.0](https://docs.microsoft.com/en-us/ef/core/cli/dotnet) or greater.
20
20
- Install global `dotnet-ef` tool.
21
21
```
22
22
dotnet tool install --global dotnet-ef
@@ -35,24 +35,24 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
35
35
- Download the `NorthwindSlim.sql` file from <https://github.com/TrackableEntities/northwind-slim>.
36
36
- Unzip **NorthwindSlim.sql** and run the script to create tables and populate them with data.
37
37
38
-
## Upgrading from v5 to v6
38
+
## Upgrading
39
39
40
-
1. Upgrade `TargetFramework` in **.csproj** file to `net6.0`.
40
+
1. Upgrade `TargetFramework` in **.csproj** file to `net6.0` or `net7.0`.
41
41
- Optional: Set `ImplicitUsings` to `enable`.
42
42
- Optional: Set `Nullable` ro `enable`.
43
-
2. Update the following NuGet packages to `6.0.0` or later:
43
+
2. Update the following NuGet packages to `7.0.0` or later:
44
44
- Microsoft.EntityFrameworkCore.Design
45
45
- Microsoft.EntityFrameworkCore.SqlServer
46
46
- EntityFrameworkCore.Scaffolding.Handlebars
47
47
3. Remove the `EnableNullableReferenceTypes` option from `services.AddHandlebarsScaffolding` in `ScaffoldingDesignTimeServices.ConfigureDesignTimeServices`.
48
-
- Version 6 relies on [support for nullable reference types in EF Core 6](https://docs.microsoft.com/en-us/ef/core/miscellaneous/nullable-reference-types).
48
+
- Version 6 or greater relies on [support for nullable reference types in EF Core 6](https://docs.microsoft.com/en-us/ef/core/miscellaneous/nullable-reference-types).
49
49
4. Run `dotnet ef dbcontext scaffold` command to regenerate entities.
50
50
- You may retain your customized Handlebars templates.
51
51
- [Many-to-many relationships](https://docs.microsoft.com/en-us/ef/core/modeling/relationships?tabs=fluent-api%2Cfluent-api-simple-key%2Csimple-key#many-to-many) will be materialized without the need for an intermediate entity.
52
52
53
53
## Usage
54
54
55
-
1. Create a new **.NET 6** class library.
55
+
1. Create a new **.NET 6** or **.NET 7** class library.
56
56
57
57
2. Add EF Core SQL Server and Tools NuGet packages.
58
58
- `Microsoft.EntityFrameworkCore.SqlServer`
@@ -105,7 +105,7 @@ Before creating a pull request, please refer to the [Contributing Guidelines](ht
105
105
106
106
## Nullable Reference Types
107
107
108
-
Take advantage of C# nullable reference types by enabling them in your .csproj file. (This is by default in .NET 6.)
108
+
Take advantage of C# nullable reference types by enabling them in your .csproj file. (This is by default in .NET 6 or greater.)
0 commit comments