TrackableEntities.Core.Templates
1.0.0
dotnet new install TrackableEntities.Core.Templates::1.0.0
Trackable Entities for EF Core Handlebars Templates
Handlebars templates for EF Core scaffolding to generate trackable entities. See TrackableEntities.Core and EntityFrameworkCore.Scaffolding.Handlebars.
Usage
Install Trackable Entities for EF Core Handlebars Templates.
dotnet new -i TrackableEntities.Core.Templates
Create a .NET Core Class Library project.
Add Trackable Entities Handlebars templates from the project folder.
dotnet new te-templates
Add the following NuGet packages to the project.
- Microsoft.EntityFrameworkCore.Design
- Microsoft.EntityFrameworkCore.SqlServer
- TrackableEntities.EF.Core
- EntityFrameworkCore.Scaffolding.Handlebars
Add a
ScaffoldingDesignTimeServices
class that implementsIDesignTimeServices
public class ScaffoldingDesignTimeServices : IDesignTimeServices { public void ConfigureDesignTimeServices(IServiceCollection services) { // Add Handlebars scaffolding templates services.AddHandlebarsScaffolding(); } }
From the command-prompt execute the following:
- Be sure to create the NorthwindSlim database in SQL Local DB, then run the script from bit.ly/northwindslim.
dotnet ef dbcontext scaffold "Data Source=(localdb)\MSSQLLocalDB; Initial Catalog=NorthwindSlim; Integrated Security=True" Microsoft.EntityFrameworkCore.SqlServer -o Models -c NorthwindSlimContext -f --context-dir Contexts
This package has no dependencies.
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.0.0 | 2,580 | 6/19/2019 |