CosmosDbContextOptionsBuilder.WithOption Metodo

Definizione

Imposta un'opzione clonando l'estensione usata per archiviare le impostazioni. Ciò garantisce che il generatore non modifica le opzioni già in uso altrove.

protected virtual Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder WithOption (Func<Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension,Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension> setAction);
abstract member WithOption : Func<Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension, Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension> -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
override this.WithOption : Func<Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension, Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension> -> Microsoft.EntityFrameworkCore.Infrastructure.CosmosDbContextOptionsBuilder
Protected Overridable Function WithOption (setAction As Func(Of CosmosOptionsExtension, CosmosOptionsExtension)) As CosmosDbContextOptionsBuilder

Parametri

setAction
Func<Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension,Microsoft.EntityFrameworkCore.Cosmos.Infrastructure.Internal.CosmosOptionsExtension>

Azione per impostare l'opzione.

Restituisce

Stessa istanza del generatore in modo che sia possibile concatenare più chiamate.

Si applica a