EntityFrameworkCore.Generator
EntityFrameworkCore.Generator copied to clipboard
How do you utilize the entity scripts?
My goal is to prevent 2 fields from being created when generating the entity files. I modified the .csx file with the following:
foreach (var property in Entity.Properties)
{
// Skip properties
if (Entity.EntityClass == "FuelOrder")
{
if (property.PropertyName == "ESignature"
|| property.PropertyName == "ESignatureImage")
{
continue;
}
}
This generated a yaml file for FuelOrder without the 2 fields, however, the .cs file contained the 2 fields. What am I missing? How do I use the templates after generating them?