How are class names deteremined in the Kinetic Framework?

We try to support databases that use plural names for tables as well as databases that use singular names for tables. Our default model is to create classes with singular names and collections of classes with plural names. We use the built-in string utilities in CodeSmith to convert from plural names to singular names and singular names to plural names. We understand this isn't perfect, and offer other a way to override class naming. There are two Extended Properties you can add to a table to affect how naming works:
  • NSFx_EntityName: This will be the class name for the entity.
  • NSFx_EntityPluralName: This will be used for any collections of this type of entity.

Learn more about SQL extended properties

Last edited Jul 17, 2008 at 1:49 AM by RossCode, version 5


No comments yet.