MutableModelExtensions.AddOwned(IMutableModel, Type) Metoda

Definice

Označí daný typ entity jako vlastněný, což označuje, že při zjištění odpovídajících typů entit by měly být nakonfigurovány jako vlastněné.

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

Parametry

model
IMutableModel

Model, do který chcete přidat vlastněný typ.

clrTypetype
Type

Typ entity, který by měl být vlastněný.

Platí pro