Share via


TableColumnAttribute Class

 

The TableColumnAttribute can be used to annotate data model properties that represent system properties used by the TableController<TData>. By indicating which columns are the id, version, createdAt, etc. columns, the various domain managers can leverage that information to provide the best possible mapping to any particular backend store.

Namespace:   Microsoft.WindowsAzure.Mobile.Service.Tables
Assembly:  Microsoft.WindowsAzure.Mobile.Service.Tables (in Microsoft.WindowsAzure.Mobile.Service.Tables.dll)

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.WindowsAzure.Mobile.Service.Tables.TableColumnAttribute

Syntax

[AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field, 
    AllowMultiple = false, Inherited = true)]
public sealed class TableColumnAttribute : Attribute
[AttributeUsageAttribute(AttributeTargets::Property | AttributeTargets::Field, 
    AllowMultiple = false, Inherited = true)]
public ref class TableColumnAttribute sealed : Attribute
[<Sealed>]
[<AttributeUsageAttribute(AttributeTargets.Property | AttributeTargets.Field,
    AllowMultiple = false, Inherited = true)>]
type TableColumnAttribute = 
    class
        inherit Attribute
    end
<AttributeUsageAttribute(AttributeTargets.Property Or AttributeTargets.Field,
    AllowMultiple := False, Inherited := True)>
Public NotInheritable Class TableColumnAttribute
    Inherits Attribute

Constructors

Name Description
System_CAPS_pubmethod TableColumnAttribute(TableColumnType)

Initializes a new instance of the TableColumnAttribute with a given columnType.

Properties

Name Description
System_CAPS_pubproperty ColumnType

The TableColumnType for property this attribute is applied to.

System_CAPS_pubpropertySystem_CAPS_static TableColumnAnnotation

When registering the TableColumnAttribute with Entity Framework using a model builder code first convention, use this name as the table column annotation name. See https://entityframework.codeplex.com/wikipage?title=Code%20First%20Annotations for more information about Entity Framework code first conventions and code annotations.

System_CAPS_pubproperty TypeId

(Inherited from Attribute.)

Methods

Name Description
System_CAPS_pubmethod Equals(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod GetHashCode()

(Inherited from Attribute.)

System_CAPS_pubmethod GetType()

(Inherited from Object.)

System_CAPS_pubmethod IsDefaultAttribute()

(Inherited from Attribute.)

System_CAPS_pubmethod Match(Object)

(Inherited from Attribute.)

System_CAPS_pubmethod ToString()

(Inherited from Object.)

Explicit Interface Implementations

Name Description
System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfo(UInt32, UInt32, IntPtr)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.GetTypeInfoCount(UInt32)

(Inherited from Attribute.)

System_CAPS_pubinterfaceSystem_CAPS_privmethod _Attribute.Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr)

(Inherited from Attribute.)

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Microsoft.WindowsAzure.Mobile.Service.Tables Namespace

Return to top