Condividi tramite


IMutableEntityType.SetPrimaryKey Metodo

Definizione

Overload

SetPrimaryKey(IMutableProperty)

Imposta la chiave primaria per questo tipo di entità.

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

Imposta la chiave primaria per questo tipo di entità.

SetPrimaryKey(IMutableProperty)

Imposta la chiave primaria per questo tipo di entità.

public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey SetPrimaryKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
public virtual Microsoft.EntityFrameworkCore.Metadata.IMutableKey? SetPrimaryKey (Microsoft.EntityFrameworkCore.Metadata.IMutableProperty? property);
abstract member SetPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
override this.SetPrimaryKey : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Overridable Function SetPrimaryKey (property As IMutableProperty) As IMutableKey

Parametri

property
IMutableProperty

Proprietà della chiave primaria.

Restituisce

Chiave appena creata.

Si applica a

SetPrimaryKey(IReadOnlyList<IMutableProperty>)

Imposta la chiave primaria per questo tipo di entità.

public Microsoft.EntityFrameworkCore.Metadata.IMutableKey SetPrimaryKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> properties);
public Microsoft.EntityFrameworkCore.Metadata.IMutableKey? SetPrimaryKey (System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty>? properties);
abstract member SetPrimaryKey : System.Collections.Generic.IReadOnlyList<Microsoft.EntityFrameworkCore.Metadata.IMutableProperty> -> Microsoft.EntityFrameworkCore.Metadata.IMutableKey
Public Function SetPrimaryKey (properties As IReadOnlyList(Of IMutableProperty)) As IMutableKey

Parametri

properties
IReadOnlyList<IMutableProperty>

Proprietà che costituiscono la chiave primaria.

Restituisce

Chiave appena creata.

Si applica a