Поделиться через


ConventionModelExtensions.RemoveOwned(IConventionModel, Type) Метод

Определение

Удаляет заданный собственный тип, указывая, что при обнаружении соответствующие типы сущностей не должны быть настроены как принадлежащие.

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

Параметры

model
IConventionModel

Модель для удаления имени принадлежащего типа.

clrTypetype
Type

Тип сущности, который не должен принадлежать.

Возвращаемое значение

Имя удаленного типа.

Применяется к