Data types using C#

Creating a Page meta data type

The sample code and its key pointers in the following sections demonstrate how to create a meta data type.

Minimal example

[AutoUpdateble]
[ImmutableTypeId("{49F23108-2EA8-4f1b-945F-30676777F8AB}")]
[DataAncestorProvider(typeof(NoAncestorDataAncestorProvider))]
public interface IMyMetaData : IPageMetaData
{
    [StoreFieldType(PhysicalStoreFieldType.String, 255)]
    [ImmutableFieldId("{1F3F5C32-4075-4899-89B6-9C01A041B712}")]
    string Title { get; set; }
}