Udostępnij za pośrednictwem


CosmosEntityTypeExtensions.SetPartitionKeyPropertyName Metoda

Definicja

Przeciążenia

SetPartitionKeyPropertyName(IMutableEntityType, String)

Ustawia nazwę właściwości używanej do przechowywania klucza partycji.

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Ustawia nazwę właściwości używanej do przechowywania klucza partycji.

SetPartitionKeyPropertyName(IMutableEntityType, String)

Ustawia nazwę właściwości używanej do przechowywania klucza partycji.

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

Parametry

entityType
IMutableEntityType

Typ jednostki do ustawienia nazwy właściwości klucza partycji.

name
String

Nazwa do ustawienia.

Dotyczy

SetPartitionKeyPropertyName(IConventionEntityType, String, Boolean)

Ustawia nazwę właściwości używanej do przechowywania klucza partycji.

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

Parametry

entityType
IConventionEntityType

Typ jednostki do ustawienia nazwy właściwości klucza partycji.

name
String

Nazwa do ustawienia.

fromDataAnnotation
Boolean

Wskazuje, czy konfiguracja została określona przy użyciu adnotacji danych.

Zwraca

Dotyczy