IMutableModel.RemoveEntityType 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í
RemoveEntityType(String) |
Odebere typ entity bez definující navigace z modelu. |
RemoveEntityType(Type, String, IMutableEntityType) |
Odebere typ entity s daným typem, definuje navigační název a definující typ entity. |
RemoveEntityType(String, String, IMutableEntityType) |
Odebere typ entity s daným typem, definuje navigační název a definující typ entity. |
RemoveEntityType(IMutableEntityType) |
Odebere typ entity z modelu. |
RemoveEntityType(Type) |
Odebere typ entity z modelu. |
RemoveEntityType(String)
Odebere typ entity bez definující navigace z modelu.
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (string name);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (string name);
abstract member RemoveEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String) As IMutableEntityType
Parametry
- name
- String
Název typu entity, který se má odebrat.
Návraty
Typ entity, který byl odebrán.
Platí pro
RemoveEntityType(Type, String, IMutableEntityType)
Odebere typ entity s daným typem, definuje navigační název a definující typ entity.
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
Parametry
- type
- Type
Třída CLR, která se používá k reprezentaci instancí tohoto typu entity.
- definingNavigationName
- String
Definující navigaci.
- definingEntityType
- IMutableEntityType
Definující typ entity.
Návraty
Typ entity, který byl odebrán.
Platí pro
RemoveEntityType(String, String, IMutableEntityType)
Odebere typ entity s daným typem, definuje navigační název a definující typ entity.
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member RemoveEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (name As String, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
Parametry
- name
- String
Název typu entity, který se má odebrat.
- definingNavigationName
- String
Definující navigaci.
- definingEntityType
- IMutableEntityType
Definující typ entity.
Návraty
Typ entity, který byl odebrán.
Platí pro
RemoveEntityType(IMutableEntityType)
Odebere typ entity z modelu.
public void RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> unit
abstract member RemoveEntityType : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Sub RemoveEntityType (entityType As IMutableEntityType)
Public Function RemoveEntityType (entityType As IMutableEntityType) As IMutableEntityType
Parametry
- entityType
- IMutableEntityType
Typ entity, který se má odebrat.
Návraty
Odebraný typ entity nebo null
pokud nebyl typ entity nalezen.
Platí pro
RemoveEntityType(Type)
Odebere typ entity z modelu.
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType? RemoveEntityType (Type type);
abstract member RemoveEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function RemoveEntityType (type As Type) As IMutableEntityType
Parametry
- type
- Type
Typ entity, který se má odebrat.
Návraty
Typ entity, který byl odebrán.
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