DbModelBuilder.ComplexType<TComplexType> Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Registers a type as a complex type in the model and returns an object that can be used to configure the complex type. This method can be called multiple times for the same type to perform multiple lines of configuration.
public virtual System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<TComplexType> ComplexType<TComplexType> () where TComplexType : class;
abstract member ComplexType : unit -> System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> (requires 'ComplexType : null)
override this.ComplexType : unit -> System.Data.Entity.ModelConfiguration.ComplexTypeConfiguration<'ComplexType (requires 'ComplexType : null)> (requires 'ComplexType : null)
Public Overridable Function ComplexType(Of TComplexType As Class) () As ComplexTypeConfiguration(Of TComplexType)
Type Parameters
- TComplexType
The type to be registered or configured.
Returns
The configuration object for the specified complex type.
Applies to
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.
Entity Framework