Naming Conventions


CodeFluent Entities allows developers to define naming conventions on their projects.

A naming convention in CodeFluent Entities is a rule which will be used by database producers to generate database objects (tables, columns, stored procedures, etc.). The naming convention to be used can be set at the project level in XML or using the Modeler thanks to the Naming Convention property:

NamingConventions

As shown in the screenshot above, available conventions are:

  • Default,
  • Decamelized,
  • Upper Case,
  • Lower Case,
  • Upper Case Decamelized,
  • Lower Case Decamelized,
  • Custom Formats.

Here’s my model:

Model

For instance, using the Default naming convention will generate the following:

Default

Using the Decamelized will decamelize names using underscores:

Decamelized

Using the Upper Case one will capitalize names:

UpperCase

Using the Lower Case does the opposite:

LowerCase

Using the Upper Case Decamelized combines the Decamelized and the Upper Case ones:

UpperCaseDecamelized

And so does the Lower Case Decamelized:

LowerCaseDecamelized

If ever you need more than those default ones you use the Custom Formats naming convention which lets you specify a string format so you can prefix and/or suffix all names, or even develop your own!

More information is available in the documentation: Naming Conventions, and Implementing a Custom Naming Convention.

See you soon,

The CodeFluent Entities R&D team

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s