CosmosEntityTypeExtensions.GetContainer Method

Definition

Overloads

GetContainer(IEntityType)

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

GetContainer(IReadOnlyEntityType)

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

GetContainer(IEntityType)

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

public static string GetContainer (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetContainer : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> string
<Extension()>
Public Function GetContainer (entityType As IEntityType) As String

Parameters

entityType
IEntityType

The entity type to get the container name for.

Returns

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

Applies to

GetContainer(IReadOnlyEntityType)

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

public static string? GetContainer (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetContainer : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> string
<Extension()>
Public Function GetContainer (entityType As IReadOnlyEntityType) As String

Parameters

entityType
IReadOnlyEntityType

The entity type to get the container name for.

Returns

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

Applies to