CosmosEntityTypeExtensions.GetPartitionKeyProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetPartitionKeyProperty(IReadOnlyEntityType) |
Returns the property that is used to store the partition key. |
GetPartitionKeyProperty(IMutableEntityType) |
Returns the property that is used to store the partition key. |
GetPartitionKeyProperty(IConventionEntityType) |
Returns the property that is used to store the partition key. |
GetPartitionKeyProperty(IEntityType) |
Returns the property that is used to store the partition key. |
GetPartitionKeyProperty(IReadOnlyEntityType)
Returns the property that is used to store the partition key.
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IReadOnlyEntityType) As IReadOnlyProperty
Parameters
- entityType
- IReadOnlyEntityType
The entity type to get the partition key property for.
Returns
The name of the partition key property.
Applies to
GetPartitionKeyProperty(IMutableEntityType)
Returns the property that is used to store the partition key.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IMutableEntityType) As IMutableProperty
Parameters
- entityType
- IMutableEntityType
The entity type to get the partition key property for.
Returns
The name of the partition key property.
Applies to
GetPartitionKeyProperty(IConventionEntityType)
Returns the property that is used to store the partition key.
public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IConventionEntityType) As IConventionProperty
Parameters
- entityType
- IConventionEntityType
The entity type to get the partition key property for.
Returns
The name of the partition key property.
Applies to
GetPartitionKeyProperty(IEntityType)
Returns the property that is used to store the partition key.
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetPartitionKeyProperty (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
<Extension()>
Public Function GetPartitionKeyProperty (entityType As IEntityType) As IProperty
Parameters
- entityType
- IEntityType
The entity type to get the partition key property for.
Returns
The name of the partition key property.
Applies to
Entity Framework