Bagikan melalui


ModelBuilder.ApplyConfiguration Metode

Definisi

Overload

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

Menerapkan konfigurasi yang ditentukan dalam IEntityTypeConfiguration<TEntity> instans.

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

Menerapkan konfigurasi yang ditentukan dalam IQueryTypeConfiguration<TQuery> instans.

ApplyConfiguration<TEntity>(IEntityTypeConfiguration<TEntity>)

Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs

Menerapkan konfigurasi yang ditentukan dalam IEntityTypeConfiguration<TEntity> instans.

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

Jenis parameter

TEntity

Jenis entitas yang akan dikonfigurasi.

Parameter

configuration
IEntityTypeConfiguration<TEntity>

Konfigurasi yang akan diterapkan.

Mengembalikan

Instans yang sama ModelBuilder sehingga panggilan konfigurasi tambahan dapat dirangkai.

Keterangan

Lihat Pemodelan jenis entitas dan hubungan untuk informasi dan contoh selengkapnya.

Berlaku untuk

ApplyConfiguration<TQuery>(IQueryTypeConfiguration<TQuery>)

Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs
Sumber:
ModelBuilder.cs

Perhatian

Use IEntityTypeConfiguration<TEntity> instead

Menerapkan konfigurasi yang ditentukan dalam IQueryTypeConfiguration<TQuery> instans.

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

Jenis parameter

TQuery

Jenis kueri yang akan dikonfigurasi.

Parameter

configuration
IQueryTypeConfiguration<TQuery>

Konfigurasi yang akan diterapkan.

Mengembalikan

Instans yang sama ModelBuilder sehingga panggilan konfigurasi tambahan dapat dirangkai.

Atribut

Berlaku untuk