Type is a commonly used name in almost all domains (DSL).

Imagine I have a class called SalesOrder, which must expose a Type property. It now must be called SalesOrder.SalesOrderType.

Would it be possible to rename Entity.Type to something like EntityType or FieldType to free up the name? Or is that too much trouble?

This thread was imported from our support forum. The original discussion may contain more detailed answer.

asked May 20 '10 at 19:52

ara's gravatar image


No, it won't. Agree, it's a very common name.

So options:

  • EntityType

  • ModelType

  • TypeInfo // = its exact type, the same as with VersionInfo.

  • ???

Votes/comments are welcome.

(May 20 '10 at 19:52) Alex Yakunin Alex%20Yakunin's gravatar image

TypeInfo - is OK

(May 20 '10 at 19:52) xumix xumix's gravatar image

One Answer:
  • "EntityType" is the worst option as Structure and its descendants also have the same reference to TypeInfo class.

  • "ModelType" is better but there is no any references to "ModelType" notion.

  • "TypeInfo" is the best choice, especially if we convert it to GetTypeInfo() method and thus follow the well-known Type.GetType() pattern.

answered May 21 '10 at 09:39

Dmitri%20Maximov's gravatar image

Dmitri Maximov

+1 for TypeInfo

(May 21 '10 at 09:39) Peter Ĺ ulek Peter%20%C5%A0ulek's gravatar image

TypeInfo = great suggestion :D

(May 21 '10 at 09:39) ara ara's gravatar image

otto wrote: I also vote for TypeInfo

(May 21 '10 at 09:39) Editor Editor's gravatar image

Clear - to be renamed.

(May 21 '10 at 09:39) Alex Yakunin Alex%20Yakunin's gravatar image

This was done few days ago, currently available installer of v4.2.1 already contains the fix, but v4.3 installer isn't updated yet.

(May 21 '10 at 09:39) Alex Yakunin Alex%20Yakunin's gravatar image
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