IConventionRelationalPropertyOverrides Interface

Definition

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

C#
public interface IConventionRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides
Implements

Remarks

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

Properties

Builder

Gets the builder that can be used to configure this function.

ColumnName

Gets the column that the property maps to when targeting the specified table-like store object.

(Inherited from IReadOnlyRelationalPropertyOverrides)
IsColumnNameOverridden

Gets a value indicating whether the column name is overriden.

(Inherited from IReadOnlyRelationalPropertyOverrides)
IsInModel

Indicates whether this object is in a model, i.e. hasn't been removed from one.

(Inherited from IConventionAnnotatable)
Item[String]

Gets the value of the annotation with the given name, returning null if it does not exist.

(Inherited from IReadOnlyAnnotatable)
Property

Gets the property that the overrides are for.

StoreObject

The id of the table-like store object that these overrides are for.

(Inherited from IReadOnlyRelationalPropertyOverrides)

Methods

AddAnnotation(String, Object, Boolean)

Adds an annotation to this object. Throws if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
AddAnnotations(IEnumerable<IConventionAnnotation>, Boolean)

Adds annotations to an object.

(Inherited from IConventionAnnotatable)
AnnotationsToDebugString(Int32)

Gets the debug string for all annotations declared on the object.

(Inherited from IReadOnlyAnnotatable)
FindAnnotation(String)

Gets the annotation with the given name, returning null if it does not exist.

(Inherited from IConventionAnnotatable)
GetAnnotation(String)

Gets the annotation with the given name, throwing if it does not exist.

(Inherited from IConventionAnnotatable)
GetAnnotations()

Gets all annotations on the current object.

(Inherited from IConventionAnnotatable)
GetColumnNameConfigurationSource()

Returns the configuration source for ColumnName.

GetConfigurationSource()

Returns the configuration source for these overrides.

RemoveAnnotation(String)

Removes the annotation with the given name from this object.

(Inherited from IConventionAnnotatable)
RemoveColumnNameOverride(Boolean)

Removes the column name override.

SetAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists.

(Inherited from IConventionAnnotatable)
SetColumnName(String, Boolean)

Sets the column that the property maps to when targeting the specified table-like store object.

SetOrRemoveAnnotation(String, Object, Boolean)

Sets the annotation stored under the given name. Overwrites the existing annotation if an annotation with the specified name already exists. Removes the existing annotation if null is supplied.

(Inherited from IConventionAnnotatable)
ToDebugString(MetadataDebugStringOptions, Int32)

Creates a human-readable representation of the given metadata.

Warning: Do not rely on the format of the returned string. It is designed for debugging only and may change arbitrarily between releases.

(Inherited from IReadOnlyRelationalPropertyOverrides)

Extension Methods

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0