RelationalEntityTypeExtensions.SetContainerColumnName Method

Definition

Overloads

SetContainerColumnName(IMutableEntityType, String)

Sets the name of the container column to which the entity type is mapped.

SetContainerColumnName(IConventionEntityType, String, Boolean)

Sets the name of the container column to which the entity type is mapped.

SetContainerColumnName(IMutableEntityType, String)

Sets the name of the container column to which the entity type is mapped.

public static void SetContainerColumnName (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? columnName);
static member SetContainerColumnName : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetContainerColumnName (entityType As IMutableEntityType, columnName As String)

Parameters

entityType
IMutableEntityType

The entity type to set the container column name for.

columnName
String

The name to set.

Applies to

SetContainerColumnName(IConventionEntityType, String, Boolean)

Sets the name of the container column to which the entity type is mapped.

public static string? SetContainerColumnName (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? columnName, bool fromDataAnnotation = false);
static member SetContainerColumnName : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetContainerColumnName (entityType As IConventionEntityType, columnName As String, Optional fromDataAnnotation As Boolean = false) As String

Parameters

entityType
IConventionEntityType

The entity type to set the container column name for.

columnName
String

The name to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to