hi,
i have 2 similar requirements/problems i'm working through:
the first requirementi have (like so many others) is to generate classes from database table definitions, the way its been done with our existing bespoke codegen tool is to have "code in front" and "code behind files", where:
- the code in frontis for custom development and wont get overwritten
- the code behind will get overwritten with the latest code when a developer regenerates.
what i'm wondering is whats the best way to do this in terms of codegen.
a custom action???
basically,
i need to check for the existence of a file:
- if it exists, then ignore it
- if it doesnt,then create it.
would it bepossible to use the conditional actions from SFT for this???
the second requirement is similar to the first but:
i need to identify if the file exists,
- if not create it and add a line to it related to the file i'm generating,
- if it does exist append a line to it?
any help would be greatly appreciated..
regards...