Item Types and Content Types

An item must be attributed with an item type, that can be used to separate and group items together. An item may also contain a content object, as long as its type descends from ContentBase abstract class. The only way to establish the exact type of an item's content is to use standard .NET OOP: the is operator and the GetType method.

There is no restriction on how to combine item types and content types. An item type may be used with several content types and vice versa. This allows to reuse a content type between many item types. Had a one-to-one restriction been used, the user would have to create many identical classes that would contain the same information.

Last edited Apr 10, 2008 at 11:33 AM by NikolaosGeorgiou, version 2

Comments

No comments yet.