MutableModelExtensions.GetOrAddEntityType Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Přetížení
GetOrAddEntityType(IMutableModel, String) |
Získá typ entity se zadaným názvem nebo přidá nový typ entity, pokud není nalezen žádný. |
GetOrAddEntityType(IMutableModel, Type) |
Získá typ entity s danou třídou CLR nebo přidá nový typ entity, pokud není nalezen žádný. |
GetOrAddEntityType(IMutableModel, String)
Získá typ entity se zadaným názvem nebo přidá nový typ entity, pokud není nalezen žádný.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetOrAddEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, string name);
static member GetOrAddEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetOrAddEntityType (model As IMutableModel, name As String) As IMutableEntityType
Parametry
- model
- IMutableModel
Model, do který chcete najít nebo přidat typ entity.
- name
- String
Název typu entity.
Návraty
Existující nebo nově vytvořený typ entity.
Platí pro
GetOrAddEntityType(IMutableModel, Type)
Získá typ entity s danou třídou CLR nebo přidá nový typ entity, pokud není nalezen žádný.
public static Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType GetOrAddEntityType (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model, Type type);
static member GetOrAddEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableModel * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
<Extension()>
Public Function GetOrAddEntityType (model As IMutableModel, type As Type) As IMutableEntityType
Parametry
- model
- IMutableModel
Model, do který chcete najít nebo přidat typ entity.
- type
- Type
Třída CLR typu entity.
Návraty
Existující nebo nově vytvořený typ entity.
Platí pro
Entity Framework
Váš názor
https://aka.ms/ContentUserFeedback.
Připravujeme: V průběhu roku 2024 budeme postupně vyřazovat problémy z GitHub coby mechanismus zpětné vazby pro obsah a nahrazovat ho novým systémem zpětné vazby. Další informace naleznete v tématu:Odeslat a zobrazit názory pro