Compartilhar via


ModelPropertyClass Class

Definition

The metadata class for properties.

public sealed class ModelPropertyClass
type ModelPropertyClass = class
Public NotInheritable Class ModelPropertyClass
Inheritance
ModelPropertyClass

Remarks

TSqlModelSchema metadata classes provide access to the structure and instance data within a TSqlSchemaModel instance.

Properties

DataType

Data type of the property.

Name

Property name.

OwningRelationship

Owning ModelRelationshipClass for the property, where this property is attached to a Relationship. Null if this property is on a ModelTypeClass

OwningType

Owning ModelTypeClass for the property, where this property is attached to a Type. Null if this property is on a ModelRelationshipClass

SupportedPlatforms

The TSqlPlatforms versions on which this relationship is supported.

Methods

GetDefaultValue(SqlServerVersion, Int32)

Returns the default property value.

GetDefaultValue(SqlServerVersion)

Returns the default property value.

Note: for SqlAzure the default value may depend on the EngineVersion being targeted. This method assumes the current default version is being used. To get a default value based on a particular for a particular EngineVersion, please use GetDefaultValue(SqlServerVersion, Int32).

GetDefaultValue<T>(SqlServerVersion, Int32)

Returns the default property value. Note: for SqlAzure the default value may depend on the EngineVersion being targeted.

GetDefaultValue<T>(SqlServerVersion)

Returns the default property value.

Note: for SqlAzure the default value may depend on the EngineVersion being targeted. This method assumes the current default version is being used. To get a default value based on a particular for a particular EngineVersion, please use GetDefaultValue<T>(SqlServerVersion, Int32).

GetValue<T>(TSqlObject)

Returns the property value.

IsDefaultValue(TSqlObject, SqlServerVersion, Int32)

Returns if the value is the platform default value.

IsDefaultValue(TSqlObject, SqlServerVersion)

Returns if the value is the platform default value.

Note: for SqlAzure the default value may depend on the EngineVersion being targeted. This method assumes the current default version is being used. To validate the default value based on a particular for a particular EngineVersion, please use IsDefaultValue(TSqlObject, SqlServerVersion, Int32).

Applies to