PropertyMetadata Class

Metadata about a property of an entity. Usually these objects are either marked as SerializableAttribute, or must derive from MarshalByRefObject and are passed as parameters for T4 text templates in Visual Studio.

System.Object
  Microsoft.AspNet.Scaffolding.Core.Metadata.PropertyMetadata

Namespace:  Microsoft.AspNet.Scaffolding.Core.Metadata
Assembly:  Microsoft.AspNet.Scaffolding.12.0 (in Microsoft.AspNet.Scaffolding.12.0.dll)

[SerializableAttribute]
public class PropertyMetadata

The PropertyMetadata type exposes the following members.

  NameDescription
Public methodPropertyMetadataInitializes a new instance of the PropertyMetadata class.
Top

  NameDescription
Public propertyAssociationDirectionThe association direction when IsAssociation is true. When the property is false, this should not be used.
Public propertyDefaultValueDefault value.
Public propertyIsAssociationSpecifies whether this property is an association property.
Public propertyIsAutoGeneratedSpecifies whether the property is generated automatically by database.
Public propertyIsComplexTypeSpecifies whether the property is a Complex Type.
Public propertyIsConcurrencyPropertySpecifies whether this property is used for ensuring concurrency.
Public propertyIsEnumSpecifies whether the property is an Enum Type.
Public propertyIsEnumFlagsSpecifies whether the property is an Enum Type representing bit flags.
Public propertyIsForeignKeySpecifies whether this property is a foreign key to another entity.
Public propertyIsIndependentAssociationIf this property is an association property, indicates whether this association has an associated foreign key property on the entity (false ) or not (true ).
Public propertyIsPrimaryKeySpecifies whether this property is a primary key for it's entity.
Public propertyIsReadOnlySpecifies whether this property is read only.
Public propertyPropertyNameName of property.
Public propertyRelatedModelIf this property is an association property, contains information about the associated model. This is null for non-association properties.
Public propertyScaffoldSpecifies whether UI should be generated for this property.
Public propertyShortTypeNameShort type name that is used when generating code.
Public propertyTypeNameType name of the property type.
Top

  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top

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