CosmosEntityTypeExtensions.SetContainingPropertyName Method

Definition

Overloads

SetContainingPropertyName(IMutableEntityType, String)

Sets the name of the parent property to which the entity type is mapped.

SetContainingPropertyName(IConventionEntityType, String, Boolean)

Sets the name of the parent property to which the entity type is mapped.

SetContainingPropertyName(IMutableEntityType, String)

Sets the name of the parent property to which the entity type is mapped.

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

Parameters

entityType
IMutableEntityType

The entity type to set the containing property name for.

name
String

The name to set.

Applies to

SetContainingPropertyName(IConventionEntityType, String, Boolean)

Sets the name of the parent property to which the entity type is mapped.

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

Parameters

entityType
IConventionEntityType

The entity type to set the containing property name for.

name
String

The name to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to