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
| Name | Description |
|---|---|
| GetPartitionKeyProperty(IReadOnlyEntityType) |
Obsolete.
Returns the property that is used to store the partition key. |
| GetPartitionKeyProperty(IMutableEntityType) |
Obsolete.
Returns the property that is used to store the partition key. |
| GetPartitionKeyProperty(IConventionEntityType) |
Obsolete.
Returns the property that is used to store the partition key. |
| GetPartitionKeyProperty(IEntityType) |
Obsolete.
Returns the property that is used to store the partition key. |
GetPartitionKeyProperty(IReadOnlyEntityType)
Caution
Use GetPartitionKeyProperties
Returns the property that is used to store the partition key.
[System.Obsolete("Use GetPartitionKeyProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType entityType);
[<System.Obsolete("Use GetPartitionKeyProperties")>]
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IReadOnlyEntityType -> Microsoft.EntityFrameworkCore.Metadata.IReadOnlyProperty
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.
- Attributes
Applies to
GetPartitionKeyProperty(IMutableEntityType)
Caution
Use GetPartitionKeyProperties
Returns the property that is used to store the partition key.
[System.Obsolete("Use GetPartitionKeyProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
[<System.Obsolete("Use GetPartitionKeyProperties")>]
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
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.
- Attributes
Applies to
GetPartitionKeyProperty(IConventionEntityType)
Caution
Use GetPartitionKeyProperties
Returns the property that is used to store the partition key.
[System.Obsolete("Use GetPartitionKeyProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.IConventionProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType);
[<System.Obsolete("Use GetPartitionKeyProperties")>]
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType -> Microsoft.EntityFrameworkCore.Metadata.IConventionProperty
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.
- Attributes
Applies to
GetPartitionKeyProperty(IEntityType)
Caution
Use GetPartitionKeyProperties
Returns the property that is used to store the partition key.
[System.Obsolete("Use GetPartitionKeyProperties")]
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.IProperty? GetPartitionKeyProperty(this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
[<System.Obsolete("Use GetPartitionKeyProperties")>]
static member GetPartitionKeyProperty : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IProperty
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.
- Attributes