Udostępnij za pośrednictwem


RelationalPropertyExtensions Class

Definition

Property extension methods for relational database metadata.

public static class RelationalPropertyExtensions
type RelationalPropertyExtensions = class
Public Module RelationalPropertyExtensions
Inheritance
RelationalPropertyExtensions

Remarks

See Modeling entity types and relationships for more information and examples.

Methods

FindColumn(IProperty, StoreObjectIdentifier)

Returns the column corresponding to this property if it's mapped to the given table-like store object.

FindOverrides(IConventionProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindOverrides(IMutableProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindOverrides(IProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindOverrides(IReadOnlyProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindRelationalMapping(IProperty)
Obsolete.

Returns the RelationalTypeMapping for the given property on a finalized model.

FindRelationalTypeMapping(IProperty, StoreObjectIdentifier)

Returns the RelationalTypeMapping for the given property on a finalized model.

FindRelationalTypeMapping(IProperty)

Returns the RelationalTypeMapping for the given property on a finalized model.

FindRelationalTypeMapping(IReadOnlyProperty, StoreObjectIdentifier)

Returns the RelationalTypeMapping for the given property on a finalized model.

FindRelationalTypeMapping(IReadOnlyProperty)

Returns the RelationalTypeMapping for the given property on a finalized model.

FindSharedStoreObjectRootProperty(IConventionProperty, StoreObjectIdentifier)

Finds the first IProperty that is mapped to the same column in a shared table-like object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindSharedStoreObjectRootProperty(IMutableProperty, StoreObjectIdentifier)

Finds the first IProperty that is mapped to the same column in a shared table-like object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindSharedStoreObjectRootProperty(IProperty, StoreObjectIdentifier)

Finds the first IProperty that is mapped to the same column in a shared table-like object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindSharedStoreObjectRootProperty(IReadOnlyProperty, StoreObjectIdentifier)

Finds the first IProperty that is mapped to the same column in a shared table-like object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

FindSharedTableRootPrimaryKeyProperty(IProperty)

Finds the IProperty that represents the same primary key property as the given property, but potentially in a shared root table.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

GetCollation(IProperty, StoreObjectIdentifier)

Returns the collation to be used for the column.

GetCollation(IProperty)

Returns the collation to be used for the column.

GetCollation(IReadOnlyProperty, StoreObjectIdentifier)

Returns the collation to be used for the column.

GetCollation(IReadOnlyProperty)

Returns the collation to be used for the column.

GetCollationConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the column collation.

GetColumnBaseName(IProperty)

Returns the base name of the column to which the property would be mapped.

GetColumnBaseName(IReadOnlyProperty)
Obsolete.

Returns the base name of the column to which the property would be mapped.

GetColumnName(IProperty, StoreObjectIdentifier)

Returns the name of the column to which the property is mapped for a particular table.

GetColumnName(IProperty)
Obsolete.

Returns the name of the table column to which the property is mapped.

GetColumnName(IReadOnlyProperty, StoreObjectIdentifier)

Returns the name of the column to which the property is mapped for a particular table.

GetColumnName(IReadOnlyProperty)

Returns the name of the column to which the property would be mapped.

GetColumnNameConfigurationSource(IConventionProperty, StoreObjectIdentifier)

Gets the ConfigurationSource for the column name for a particular table-like store object.

GetColumnNameConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the column name.

GetColumnOrder(IReadOnlyProperty, StoreObjectIdentifier)

Returns the order of the column this property is mapped to for a particular table.

GetColumnOrder(IReadOnlyProperty)

Returns the order of the column this property is mapped to.

GetColumnOrderConfigurationSource(IConventionProperty)

Gets the ConfigurationSource of the column order.

GetColumnType(IProperty, StoreObjectIdentifier)

Returns the database type of the column to which the property is mapped.

GetColumnType(IProperty)

Returns the database type of the column to which the property is mapped.

GetColumnType(IReadOnlyProperty, StoreObjectIdentifier)

Returns the database type of the column to which the property is mapped, or null if the database type could not be found.

GetColumnType(IReadOnlyProperty)

Returns the database type of the column to which the property is mapped, or null if the database type could not be found.

GetColumnTypeConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the column name.

GetComment(IProperty, StoreObjectIdentifier)

Returns the comment for the column this property is mapped to.

GetComment(IProperty)

Returns the comment for the column this property is mapped to.

GetComment(IReadOnlyProperty, StoreObjectIdentifier)

Returns the comment for the column this property is mapped to.

GetComment(IReadOnlyProperty)

Returns the comment for the column this property is mapped to.

GetCommentConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the column comment.

GetComputedColumnSql(IProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the computed value for the column this property is mapped to.

GetComputedColumnSql(IProperty)

Returns the SQL expression that is used as the computed value for the column this property is mapped to.

GetComputedColumnSql(IReadOnlyProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the computed value for the column this property is mapped to.

GetComputedColumnSql(IReadOnlyProperty)

Returns the SQL expression that is used as the computed value for the column this property is mapped to.

GetComputedColumnSqlConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the computed value SQL expression.

GetDefaultColumnBaseName(IProperty)

Returns the default base name of the column to which the property would be mapped

GetDefaultColumnBaseName(IReadOnlyProperty)
Obsolete.

Returns the default base name of the column to which the property would be mapped

GetDefaultColumnMappings(IProperty)

Returns the default columns to which the property would be mapped.

GetDefaultColumnName(IProperty, StoreObjectIdentifier)

Returns the default column name to which the property would be mapped.

GetDefaultColumnName(IProperty)
Obsolete.

Returns the default table column name to which the property would be mapped.

GetDefaultColumnName(IReadOnlyProperty, StoreObjectIdentifier)

Returns the default column name to which the property would be mapped.

GetDefaultColumnName(IReadOnlyProperty)

Returns the default base name of the column to which the property would be mapped

GetDefaultValue(IProperty, StoreObjectIdentifier)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IProperty)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValue(IReadOnlyProperty)

Returns the object that is used as the default value for the column this property is mapped to.

GetDefaultValueConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the default value.

GetDefaultValueSql(IProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IReadOnlyProperty, StoreObjectIdentifier)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSql(IReadOnlyProperty)

Returns the SQL expression that is used as the default value for the column this property is mapped to.

GetDefaultValueSqlConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the default value SQL expression.

GetDeleteStoredProcedureParameterMappings(IProperty)

Returns the delete stored procedure parameters to which the property is mapped.

GetFunctionColumnMappings(IProperty)

Returns the function columns to which the property is mapped.

GetInsertStoredProcedureParameterMappings(IProperty)

Returns the insert stored procedure parameters to which the property is mapped.

GetInsertStoredProcedureResultColumnMappings(IProperty)

Returns the insert stored procedure result columns to which the property is mapped.

GetIsFixedLengthConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for IsFixedLength(IReadOnlyProperty).

GetIsStored(IProperty, StoreObjectIdentifier)

Gets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

GetIsStored(IProperty)

Gets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

GetIsStored(IReadOnlyProperty, StoreObjectIdentifier)

Gets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

GetIsStored(IReadOnlyProperty)

Gets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

GetIsStoredConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the computed value SQL expression.

GetJsonPropertyName(IReadOnlyProperty)

Gets the value of JSON property name used for the given property of an entity mapped to a JSON column.

GetJsonPropertyNameConfigurationSource(IConventionProperty)

Gets the ConfigurationSource for the JSON property name for a given entity property.

GetMappedStoreObjects(IReadOnlyProperty, StoreObjectType)

Returns the table-like store objects to which this property is mapped.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetMaxLength(IProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

GetMaxLength(IReadOnlyProperty, StoreObjectIdentifier)

Gets the maximum length of data that is allowed in this property. For example, if the property is a String then this is the maximum number of characters.

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier, Boolean)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOrCreateOverrides(IConventionProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOrCreateOverrides(IMutableProperty, StoreObjectIdentifier)

Returns the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOverrides(IConventionProperty)

Returns all the property facet overrides.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOverrides(IMutableProperty)

Returns all the property facet overrides.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOverrides(IProperty)

Returns all the property facet overrides.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetOverrides(IReadOnlyProperty)

Returns all the property facet overrides.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

GetPrecision(IProperty, StoreObjectIdentifier)

Gets the precision of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of digits.

GetPrecision(IReadOnlyProperty, StoreObjectIdentifier)

Gets the precision of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of digits.

GetReaderFieldValue(IProperty, RelationalDataReader, Int32, Boolean)

Reads a value for this property from the given relationalReader.

GetRelationalTypeMapping(IProperty)

Returns the RelationalTypeMapping for the given property on a finalized model.

GetRelationalTypeMapping(IReadOnlyProperty)

Returns the RelationalTypeMapping for the given property on a finalized model.

GetScale(IProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

GetScale(IReadOnlyProperty, StoreObjectIdentifier)

Gets the scale of data that is allowed in this property. For example, if the property is a Decimal then this is the maximum number of decimal places.

GetSqlQueryColumnMappings(IProperty)

Returns the SQL query columns to which the property is mapped.

GetTableColumnMappings(IProperty)

Returns the table columns to which the property is mapped.

GetUpdateStoredProcedureParameterMappings(IProperty)

Returns the update stored procedure parameters to which the property is mapped.

GetUpdateStoredProcedureResultColumnMappings(IProperty)

Returns the update stored procedure result columns to which the property is mapped.

GetViewColumnMappings(IProperty)

Returns the view columns to which the property is mapped.

IsColumnNullable(IProperty, StoreObjectIdentifier)

Checks whether the column mapped to the given IProperty will be nullable when created in the database.

This depends on the property itself and also how it is mapped. For example, derived non-nullable properties in a TPH type hierarchy will be mapped to nullable columns. As well as properties on optional types sharing the same table.

IsColumnNullable(IProperty)

Checks whether the column mapped to the given IProperty will be nullable when created in the database.

This depends on the property itself and also how it is mapped. For example, derived non-nullable properties in a TPH type hierarchy will be mapped to nullable columns. As well as properties on optional types sharing the same table.

IsColumnNullable(IReadOnlyProperty, StoreObjectIdentifier)

Checks whether the column mapped to the given property will be nullable when created in the database.

IsColumnNullable(IReadOnlyProperty)

Checks whether the column mapped to the given IProperty will be nullable when created in the database.

IsFixedLength(IProperty, StoreObjectIdentifier)

Returns a flag indicating if the property as capable of storing only fixed-length data, such as strings.

IsFixedLength(IProperty)

Returns a flag indicating if the property as capable of storing only fixed-length data, such as strings.

IsFixedLength(IReadOnlyProperty, StoreObjectIdentifier)

Returns a flag indicating whether the property is capable of storing only fixed-length data, such as strings.

IsFixedLength(IReadOnlyProperty)

Returns a flag indicating whether the property is capable of storing only fixed-length data, such as strings.

IsUnicode(IProperty, StoreObjectIdentifier)

Gets a value indicating whether or not the property can persist Unicode characters.

IsUnicode(IReadOnlyProperty, StoreObjectIdentifier)

Gets a value indicating whether or not the property can persist Unicode characters.

RemoveOverrides(IConventionProperty, StoreObjectIdentifier)

Removes the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

RemoveOverrides(IMutableProperty, StoreObjectIdentifier)

Removes the property facet overrides for a particular table-like store object.

This method is typically used by database providers (and other extensions). It is generally not used in application code.

SetCollation(IConventionProperty, String, Boolean)

Configures a collation to be used for the column this property is mapped to.

SetCollation(IMutableProperty, String)

Configures a collation to be used for column this property is mapped to.

SetColumnName(IConventionProperty, String, Boolean)

Sets the column to which the property is mapped.

SetColumnName(IConventionProperty, String, StoreObjectIdentifier, Boolean)

Sets the column to which the property is mapped for a particular table-like store object.

SetColumnName(IMutableProperty, String, StoreObjectIdentifier)

Sets the column to which the property is mapped for a particular table-like store object.

SetColumnName(IMutableProperty, String)

Sets the column to which the property is mapped.

SetColumnOrder(IConventionProperty, Nullable<Int32>, Boolean)

Sets the order of the column the property is mapped to.

SetColumnOrder(IMutableProperty, Nullable<Int32>)

Sets the order of the column the property is mapped to.

SetColumnType(IConventionProperty, String, Boolean)

Sets the database type of the column to which the property is mapped.

SetColumnType(IMutableProperty, String)

Sets the database type of the column to which the property is mapped.

SetComment(IConventionProperty, String, Boolean)

Configures a comment to be applied to the column this property is mapped to.

SetComment(IMutableProperty, String)

Configures a comment to be applied to the column this property is mapped to.

SetComputedColumnSql(IConventionProperty, String, Boolean)

Sets the SQL expression that is used as the computed value for the column this property is mapped to.

SetComputedColumnSql(IMutableProperty, String)

Sets the SQL expression that is used as the computed value for the column this property is mapped to.

SetDefaultValue(IConventionProperty, Object, Boolean)

Sets the object that is used as the default value for the column this property is mapped to.

SetDefaultValue(IMutableProperty, Object)

Sets the object that is used as the default value for the column this property is mapped to.

SetDefaultValueSql(IConventionProperty, String, Boolean)

Sets the SQL expression that is used as the default value for the column this property is mapped to.

SetDefaultValueSql(IMutableProperty, String)

Sets the SQL expression that is used as the default value for the column this property is mapped to.

SetIsFixedLength(IConventionProperty, Nullable<Boolean>, Boolean)

Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.

SetIsFixedLength(IMutableProperty, Nullable<Boolean>)

Sets a flag indicating whether the property is capable of storing only fixed-length data, such as strings.

SetIsStored(IConventionProperty, Nullable<Boolean>, Boolean)

Sets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

SetIsStored(IMutableProperty, Nullable<Boolean>)

Sets whether the value of the computed column this property is mapped to is stored in the database, or calculated when it is read.

SetJsonPropertyName(IConventionProperty, String, Boolean)

Sets the value of JSON property name used for the given property of an entity mapped to a JSON column.

SetJsonPropertyName(IMutableProperty, String)

Sets the value of JSON property name used for the given property of an entity mapped to a JSON column.

TryGetDefaultValue(IReadOnlyProperty, Object)

Returns the object that is used as the default value for the column this property is mapped to.

TryGetDefaultValue(IReadOnlyProperty, StoreObjectIdentifier, Object)

Returns the object that is used as the default value for the column this property is mapped to.

Applies to