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
Adds a new package that can be installed via `dotnet new`:
dotnet new install Microsoft.EntityFrameworkCore.Templates::7.0.0-*
For now, it just includes a single item template that will add the default T4 templates used by `dotnet ef dbcontext scaffold`.
dotnet new ef-templates
You can then tweak the templates and they'll automatically be used when scaffolding.
dotnet ef dbcontext scaffold Filename=northwind.db Microsoft.EntityFrameworkCore.Sqlite
Resolves#4038
writer.WriteLine(@" Warning(""Your templates were created using an older version of Entity Framework. Additional features and bug fixes may be available. See https://aka.ms/efcore-docs-updating-templates for more information."");");
92
+
writer.WriteLine(@" }");
93
+
writer.WriteLine();
94
+
95
+
versionCheckAdded = true;
96
+
}
97
+
else
98
+
{
99
+
writer.WriteLine(line);
100
+
}
101
+
}
102
+
}
103
+
104
+
if (!linePragmasRemoved
105
+
|| !importAdded
106
+
|| !versionCheckAdded)
107
+
{
108
+
Log.LogError("Failed to patch the template files. Update the code in EFCore.Templates.csproj");
0 commit comments