Bagikan melalui


MutableModelExtensions.AddIgnored(IMutableModel, Type) Metode

Definisi

Menandai jenis entitas yang diberikan sebagai diabaikan, mencegah konvensi menambahkan jenis entitas yang cocok ke model.

public static void AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type clrType);
public static string AddIgnored (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> unit
static member AddIgnored : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> string
<Extension()>
Public Sub AddIgnored (model As IMutableModel, clrType As Type)
<Extension()>
Public Function AddIgnored (model As IMutableModel, type As Type) As String

Parameter

model
IMutableModel

Model untuk menambahkan jenis yang diabaikan.

clrTypetype
Type

Jenis entitas yang akan diabaikan.

Mengembalikan

Nama jenis yang diabaikan.

Berlaku untuk