Since CodeFluent Entities infers a meta-model from your model, before any producer is called to generate a single line of code, a full representation of your application is in-memory. Thanks to this inference step and the resulting meta-model, developers can apply application wide changes.
One of the possible application wide changes is to change the way all database objects are named through a naming convention. By default a set of naming conventions are provided by CodeFluent Entities:
- FormatNamingConvention
- LowerCaseNamingConvention
- UpperCaseNamingConvention
- DecamelizeNamingConvention
- DecamelizeLowerCaseNamingConvention
- DecamelizeUpperCaseNamingConvention
And you can also implement your own naming convention to fit your needs as we’ll see in this post.
Create the custom Naming Convention
The naming convention is a class so we create a class library project and add references to
- CodeFluent.Runtime.dll
- CodeFluent.Model.dll
- CodeFluent.Model.Common.dll
Those DLL are located in the installation folder of CodeFluent Entities.
Create a class that implements IProjectNamingConvention or inherits from an existing…
View original post 63 more words
Leave a Reply