Język

ConventionModelExtensions.RemoveOwned(IConventionModel, Type) Metoda

Definicja

Usuwa dany typ własności wskazujący, że po wykryciu pasujących typów jednostek nie należy konfigurować jako własności.

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

Parametry

model
IConventionModel

Model, z którego ma być usunięta nazwa typu.

clrTypetype
Type

Typ jednostki, który nie powinien być własnością.

Zwraca

Nazwa usuniętego typu należącego do użytkownika.

Dotyczy