Skip to content

An example of a code generated EC/MVC app using T4. Based on the ASP.NET tutorial.

Notifications You must be signed in to change notification settings

crfroehlich/AutoEcMvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AutoEcMvc

This is a Code Generation project which uses T4 to automatically generate the Models, Controllers and Views for an ASP.NET Core web app using Entity Framework Core. The original project is based off Microsoft tutorials and the source code for the tutorial can be found in the ASP.NET documentation repo. I have started blogging about this project on Medium, and you can view the current deployed version of the app on Azure.

Building

  • git clone git@github.com:crfroehlich/AutoEcMvc.git
  • cd AutoEcMvc
  • msbuild CodeGeneration\CodeGeneration.csproj /t:TransformAll
  • msbuild

After the solution compiles, adjust the connection string in appsettings.json if needed. By default, the project uses LocalDb, which is a lightweight database stored in your user profile; it should not require any additional permissions to run. You can switch this to target any EF Core supported database (might require the installation of additional NuGet packages to support the target database).

You can then launch the app.

About

An example of a code generated EC/MVC app using T4. Based on the ASP.NET tutorial.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages