CosmosEntityTypeExtensions.SetContainer Method

Definition

Overloads

SetContainer(IConventionEntityType, String, Boolean)

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

SetContainer(IMutableEntityType, String)

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

SetContainer(IConventionEntityType, String, Boolean)

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

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

Parameters

entityType
IConventionEntityType

The entity type to set the container name for.

name
String

The name to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to

SetContainer(IMutableEntityType, String)

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

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

Parameters

entityType
IMutableEntityType

The entity type to set the container name for.

name
String

The name to set.

Applies to