Navigation: CodeStencil > Custom Library > Code Nanites > Table Related > GenerateFluentConfig |
Expansion Label: |
CS_GENERATE_FLUENT_CONFIG |
Dependency: |
|
Description: |
Generate Fluent API ModelBuilder Config. |
This will generate a dbcontext file as well as seperate Fluent configuiration files
This is what setting up this Code Nanite looks like:
using Microsoft.EntityFrameworkCore; |
This is what the generated code looks like:
using Microsoft.EntityFrameworkCore; |
The highlighted the code is what is generated and inserted by the CS_GENERATE_FLUENT_CONFIG code nanite. Also, it generates code for every table in your schema because in the label of the node ( See Code Tree), we used the [%CS_TABLE_LIST%] Code Nanite.