Table of Contents

Interface IConventionRelationalPropertyOverrides

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.Relational.dll

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

public interface IConventionRelationalPropertyOverrides : IReadOnlyRelationalPropertyOverrides, IReadOnlyAnnotatable, IConventionAnnotatable
Inherited Members

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.

IConventionRelationalPropertyOverridesBuilder Builder { get; }

Property Value

IConventionRelationalPropertyOverridesBuilder

Exceptions

InvalidOperationException

If the function has been removed from the model.

Property

Gets the property that the overrides are for.

IConventionProperty Property { get; }

Property Value

IConventionProperty

Methods

GetColumnNameConfigurationSource()

Returns the configuration source for ColumnName.

ConfigurationSource? GetColumnNameConfigurationSource()

Returns

ConfigurationSource?

The configuration source for ColumnName.

GetConfigurationSource()

Returns the configuration source for these overrides.

ConfigurationSource GetConfigurationSource()

Returns

ConfigurationSource

The configuration source.

RemoveColumnNameOverride(bool)

Removes the column name override.

bool RemoveColumnNameOverride(bool fromDataAnnotation = false)

Parameters

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

bool

A value indicating whether the column name override was removed.

SetColumnName(string?, bool)

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

string? SetColumnName(string? name, bool fromDataAnnotation = false)

Parameters

name string

The column name.

fromDataAnnotation bool

Indicates whether the configuration was specified using a data annotation.

Returns

string

The configured value.