Bagikan melalui


ConventionModelExtensions.RemoveOwned(IConventionModel, Type) Metode

Definisi

Menghapus jenis yang dimiliki yang diberikan, menunjukkan bahwa ketika ditemukan jenis entitas yang cocok tidak boleh dikonfigurasi sebagai milik.

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

Parameter

model
IConventionModel

Model untuk menghapus nama jenis yang dimiliki.

clrTypetype
Type

Jenis jenis entitas yang tidak boleh dimiliki.

Mengembalikan

Nama jenis milik yang dihapus.

Berlaku untuk