Using LLBLGen pro trial(just downloaded newest version today).
Generating code for EF 6 and .NET 4.6
Is there a configuration for adding a suffix to entity names, or do I need to modify templates?
I want entities named TenantEntity instead of Tenant. I will have model classes that will have similar names and I have always liked that llblgen Entities have that suffix so it is clear to newer developers what are simple pocos and what are database entities.
For existing projects that we use LLBLGen as the data provider, having the *Entity suffix has been a useful distinction and improves readability and ease of reviewing code for mistakes. I.e. it's clear if someone modifies a property of a TenantEntity but doesn't save that change it's easy to distinguish from code that is just modifying a simple poco.
I know EF code first entities are pocos, but they still represent entities who's state should be saved, as opposed to other poco's that are just projections for passing around through the application. I'd really like to continue this pattern of the *Entity suffix.
What's the best approach to getting the EF v6 CodeFirst generation to add a *Entity suffix to generated entities?
Also I'd suggest adding Model and Persistence folder name options to the EF project settings, similar to LLBLGen's Project level settings, otherwise you have to edit a half dozen locations in the code generation Preset to move the output from Model to Entities subfolder. Maybe there's an easier way.