Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do you utilize the entity scripts? #249

Open
vandert opened this issue Apr 21, 2021 · 0 comments
Open

How do you utilize the entity scripts? #249

vandert opened this issue Apr 21, 2021 · 0 comments

Comments

@vandert
Copy link

vandert commented Apr 21, 2021

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant