Condividi tramite


ModelBuilder.ApplyConfiguration Metodo

Definizione

Overload

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

Applica la configurazione definita in un'istanza IEntityTypeConfiguration<TEntity> di .

ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>)
Obsoleti.

Applica la configurazione definita in un'istanza IQueryTypeConfiguration<TQuery> di .

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

Applica la configurazione definita in un'istanza IEntityTypeConfiguration<TEntity> di .

public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TEntity> (Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<TEntity> configuration) where TEntity : class;
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Entity : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IEntityTypeConfiguration<'Entity (requires 'Entity : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Entity : null)
Public Overridable Function ApplyConfiguration(Of TEntity As Class) (configuration As IEntityTypeConfiguration(Of TEntity)) As ModelBuilder

Parametri di tipo

TEntity

Tipo di entità da configurare.

Parametri

configuration
IEntityTypeConfiguration<TEntity>

Configurazione da applicare.

Restituisce

ModelBuilder Stessa istanza in modo che sia possibile concatenare le chiamate di configurazione aggiuntive.

Commenti

Per altre informazioni ed esempi, vedere Modellazione di tipi di entità e relazioni .

Si applica a

ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>)

Attenzione

Use IEntityTypeConfiguration<TEntity> instead

Applica la configurazione definita in un'istanza IQueryTypeConfiguration<TQuery> di .

public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TQuery> (Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<TQuery> configuration) where TQuery : class;
[System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")]
public virtual Microsoft.EntityFrameworkCore.ModelBuilder ApplyConfiguration<TQuery> (Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<TQuery> configuration) where TQuery : class;
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
[<System.Obsolete("Use IEntityTypeConfiguration<TEntity> instead")>]
abstract member ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
override this.ApplyConfiguration : Microsoft.EntityFrameworkCore.IQueryTypeConfiguration<'Query (requires 'Query : null)> -> Microsoft.EntityFrameworkCore.ModelBuilder (requires 'Query : null)
Public Overridable Function ApplyConfiguration(Of TQuery As Class) (configuration As IQueryTypeConfiguration(Of TQuery)) As ModelBuilder

Parametri di tipo

TQuery

Tipo di query da configurare.

Parametri

configuration
IQueryTypeConfiguration<TQuery>

Configurazione da applicare.

Restituisce

ModelBuilder Stessa istanza in modo che sia possibile concatenare le chiamate di configurazione aggiuntive.

Attributi

Si applica a