Is it possible to configure a table prefix to be used for some entities?

asked Sep 23 '11 at 04:55

TimM's gravatar image


One Answer:

Hello Tim.

The short answer is "no", you can't directly assign table prefixes.

However, you can utilize C# namespaces for that.

DataObjects.Net allow you to include namespace of a type into the name of corresponding table, either "as is" or synonymized.

In second case you can assign small prefixes for your namespaces that will be prepended to table names.

Please see DomainConfiguration.NamingConvention, NamingConvention.NamespacePolicy and NamingConvention.Synonyms.

Finally, you can directly assign table name for each type with TableMappingAttribute.

answered Sep 23 '11 at 07:27

Denis%20Krjuchkov's gravatar image

Denis Krjuchkov

edited Sep 23 '11 at 07:28

Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
toggle preview

powered by OSQA