Freigeben über


DbModelBuilder.ComplexType<TComplexType>-Methode

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Registriert einen Typ als komplexen Typ im Modell und gibt ein Objekt zurück, das zum Konfigurieren des komplexen Typs verwendet werden kann. Diese Methode kann mehrmals für den gleichen Typ aufgerufen werden, um mehrere Zeilen der Konfiguration auszuführen.

Namespace:  System.Data.Entity
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
Public Overridable Function ComplexType(Of TComplexType As Class) As ComplexTypeConfiguration(Of TComplexType)
'Usage
Dim instance As DbModelBuilder 
Dim returnValue As ComplexTypeConfiguration(Of TComplexType)

returnValue = instance.ComplexType()
public virtual ComplexTypeConfiguration<TComplexType> ComplexType<TComplexType>()
where TComplexType : class
public:
generic<typename TComplexType>
where TComplexType : ref class 
virtual ComplexTypeConfiguration<TComplexType>^ ComplexType()
abstract ComplexType : unit -> ComplexTypeConfiguration<'TComplexType>  when 'TComplexType : not struct 
override ComplexType : unit -> ComplexTypeConfiguration<'TComplexType>  when 'TComplexType : not struct
JScript does not support generic types and methods.

Typparameter

  • TComplexType
    Der Typ, der registriert oder konfiguriert werden soll.

Rückgabewert

Typ: System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType>
Das Konfigurationsobjekt für den angegebenen komplexen Typ.

Siehe auch

Verweis

DbModelBuilder Klasse

System.Data.Entity-Namespace