Condividi tramite


IConventionEntityTypeBuilder.IndexerProperty(Type, String, Boolean) Metodo

Definizione

Restituisce un oggetto che può essere usato per configurare la proprietà indicizzatore con il nome specificato. Se non esiste alcuna proprietà corrispondente, verrà aggiunta una nuova proprietà.

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder? IndexerProperty (Type propertyType, string propertyName, bool fromDataAnnotation = false);
abstract member IndexerProperty : Type * string * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionPropertyBuilder
Public Function IndexerProperty (propertyType As Type, propertyName As String, Optional fromDataAnnotation As Boolean = false) As IConventionPropertyBuilder

Parametri

propertyType
Type

Il tipo di valore che la proprietà conterrà.

propertyName
String

Nome della proprietà da configurare.

fromDataAnnotation
Boolean

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

Restituisce

Oggetto che può essere usato per configurare la proprietà se presente nel tipo di entità, null in caso contrario.

Si applica a