Condividi tramite


IConventionEntityTypeBuilder.HasNoServiceProperty Metodo

Definizione

Rimuove una proprietà del servizio da questo tipo di entità.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? HasNoServiceProperty (Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty serviceProperty, bool fromDataAnnotation = false);
abstract member HasNoServiceProperty : Microsoft.EntityFrameworkCore.Metadata.IConventionServiceProperty * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function HasNoServiceProperty (serviceProperty As IConventionServiceProperty, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

Parametri

serviceProperty
IConventionServiceProperty

Proprietà del servizio da rimuovere.

fromDataAnnotation
Boolean

Indica se la configurazione è stata specificata usando un'annotazione dati.

Restituisce

Stessa istanza del generatore se la proprietà del servizio è stata rimossa, null in caso contrario.

Si applica a