1. Overview
  2. Custom Stencils
  3. ASP .NET Core Razor Stencil

ASP .NET Core Razor Stencil

Current Version: 2.2.5 

Compatibility: .NET 7.0 and upwards

Supported Databases: SQLite, SQL Server

The ASP .NET Core Razor Stencils will generate a CRUD application in Razor. This is one of the original stencils available at the launch of CodeStencil 1.0.

You can configure how some aspects of the generated code turn out. This is the configuration form that pops up before code generation starts:

NOTE: For the most part, you may only have to change a few values, e.g. APPLICATION_NAME, OUTPUT_FOLDER.

  1. DB_CONTEXT - This is the name of the DBContext Class.
  2. DOTNET_VERSION - This is the .NET version your application will be based on. This stencil supports only .NET 7 version and upwards.
  3. PAGESIZE - This is the number of rows that will be displayed on a page before the rest and rendered to the next page.
  4. VERSION_LANGUAGE - This is the C# language version your application will use
  5. VERSION_DOTNET - Same as (2) above
  6. DOTNET_FRAMEWORK - This is the target framework version that will be used in your project file.
  7. CONNECTION_STRING_JSON - This is the connection string generated for your application.
  8. PORT_SSL - SSL Port Number
  9. PORT_NORMAL - Regular Port Number
  10. APPLICATION_NAME - This is the name of the application.
  11. ORGANIZATION_LABEL - Organization label. Usually used in the generation of namespaces.
  12. ORGANIZATION_NAME - Name of the organization.
  13. OUTPUT_FOLDER - Your code will be generated in this folder.

 

Release Notes

Version: 2.2.5   Date: October 3, 2023

New Features: N/A

Enhancements: N/A

Bug Fixes: Updated option - Database Dependent in Startup.cs node so that during Schema Import or Schema Generation, the selected database engine will be updated in the node. This way, during code generation, the code appropriate for the database in use will be the one generated. See: Triggered By Node.

Other Changes: N/A

Known Issues: N/A


 

Version: 2.2.4   Date: August 27, 2023

New Features: Added a new node for Startup.cs that will allow code generation based on expander/database.

Enhancements: N/A

Bug Fixes: N/A

Other Changes: N/A

Known Issues: N/A



Version: 2.2.3   Date: August 16, 2023

New Features: N/A

Enhancements: N/A

Bug Fixes: N/A

Other Changes

  • Updated external links
  • Upgraded to .Net 7.0

Known Issues: N/A

 

 


Was this article helpful?