EntityFrameworkCore.Generator icon indicating copy to clipboard operation
EntityFrameworkCore.Generator copied to clipboard

How do you utilize the entity scripts?

Open vandert opened this issue 3 years ago • 0 comments

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?

vandert avatar Apr 21 '21 11:04 vandert