Specifies what physical store type should be used to store this property.

Namespace: Composite.Data
Assembly: Composite (in Composite.dll) Version: 6.1.6325.31818

Syntax

C#
public sealed class StoreFieldTypeAttribute : Attribute
Visual Basic
Public NotInheritable Class StoreFieldTypeAttribute _
	Inherits Attribute
Visual C++
public ref class StoreFieldTypeAttribute sealed : public Attribute

Examples

This sample shows how to use the StoreFieldType attribute. Here a string field with a maximum of 40 characters.
CopyC#
// data interface attributes ...
interface IMyDataType : IData
{
    [StoreFieldType(PhysicalStoreFieldType.String, 40)]
    [ImmutableFieldId("{D75EA67F-AD14-4BAB-8547-6D87002809F1}")]
    string ProductName { get; set; }

    // more data properties ...

}

Inheritance Hierarchy

System..::..Object
  System..::..Attribute
    Composite.Data..::..StoreFieldTypeAttribute

See Also