What is an item?

What is an item? What is a content?

Full listing of item operations

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.

Core classes

Take a look at a class diagram of the core classes of NCommet.

How is every content type supported?

Read about XML Serialization

Last edited Apr 10, 2008 at 3:35 PM by NikolaosGeorgiou, version 2


No comments yet.