Delen via


IConventionRelationalPropertyOverrides Interface

Definition

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

public interface IConventionRelationalPropertyOverrides : Microsoft.EntityFrameworkCore.Metadata.IConventionAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyRelationalPropertyOverrides
type IConventionRelationalPropertyOverrides = interface
    interface IReadOnlyRelationalPropertyOverrides
    interface IReadOnlyAnnotatable
    interface IConventionAnnotatable
Public Interface IConventionRelationalPropertyOverrides
Implements IConventionAnnotatable, 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

GetIdentityIncrement(IReadOnlyRelationalPropertyOverrides)

Returns the identity increment.

GetIdentityIncrementConfigurationSource(IConventionRelationalPropertyOverrides)

Returns the ConfigurationSource for the identity increment for a particular table.

GetIdentitySeed(IReadOnlyRelationalPropertyOverrides)

Returns the identity seed.

GetIdentitySeedConfigurationSource(IConventionRelationalPropertyOverrides)

Returns the ConfigurationSource for the identity seed for a particular table.

GetValueGenerationStrategy(IReadOnlyRelationalPropertyOverrides)

Returns the SqlServerValueGenerationStrategy to use for the property.

GetValueGenerationStrategyConfigurationSource(IConventionRelationalPropertyOverrides)

Returns the ConfigurationSource for the SqlServerValueGenerationStrategy for a particular table.

SetIdentityIncrement(IConventionRelationalPropertyOverrides, Nullable<Int32>, Boolean)

Sets the identity increment for a particular table.

SetIdentitySeed(IConventionRelationalPropertyOverrides, Nullable<Int64>, Boolean)

Sets the identity seed for a particular table.

SetValueGenerationStrategy(IConventionRelationalPropertyOverrides, Nullable<SqlServerValueGenerationStrategy>, Boolean)

Sets the SqlServerValueGenerationStrategy to use for the property for a particular table.

Applies to