Vic
Vic

Reputation: 472

Schema Name capitalization for custom entities/fields in Dynamics CRM 365

MS recommends Pascal-case for the Schema Names, but then they don't obey the rule themselves. The custom entities and the primary fields are created by default with all-lowercase schema names, while the custom fields are Pascal-case by default. Even more, the built-in statuscode and statecode for the custom entities are all-lowercase.

Questions:

Upvotes: 3

Views: 1595

Answers (2)

Nicknow
Nicknow

Reputation: 7224

I reject the pascal case advice. In my opinion, scheme name should be all lower case. This way it matches to the logical name. It prevents a lot of confusion and mistyped names, in the future.

Upvotes: 3

As you decided to use C# Early bound classes, you will be using crmsvcutil or some Early Bound Generator which will pull all the schema name as it is from CRM Metadata.

If the schema name changes (like on drop & recreate with different datatype) the next class file will fetch it & build error will notify you.

By seeing the revisions nothing is going to change in near future & MS not even worrying about the rule-break.

To mention, next generation web api expects Schema Name in certain things like Navigation Properties whereas if you are going with Late binding, flat system converted lowercase Name (Logical Name) will be used.

Upvotes: 1

Related Questions