Compartir a través de


ConventionModelExtensions.RemoveOwned(IConventionModel, Type) Método

Definición

Quita el tipo de propiedad especificado, lo que indica que cuando se detectan tipos de entidad coincidentes no se deben configurar como propiedad.

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

Parámetros

model
IConventionModel

Modelo del que se va a quitar el nombre de tipo propiedad.

clrTypetype
Type

Tipo del tipo de entidad que no debe ser propiedad.

Devoluciones

Nombre del tipo de propiedad quitado.

Se aplica a