src/Shared/EntityFramework/ModelConfiguration/Configuration/ModelConfiguration.cs
// <summary>
// 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 configurations.
// </summary>
// <param name="complexType"> The type to be registered or configured. </param>
// <returns> The configuration object for the specified entity type. </returns>
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 configurations.
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 configurations .
[SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#")]
        public virtual ComplexTypeConfiguration ComplexType(Type complexType)
        {
            Check.NotNull(complexType, "complexType");
            if (_entityConfigurations.ContainsKey(complexType))
            {
                throw Error.ComplexTypeConfigurationMismatch(complexType.Name);
            }
            ComplexTypeConfiguration complexTypeConfiguration;
            if (!_complexTypeConfigurations.TryGetValue(complexType, out complexTypeConfiguration))
            {
                _complexTypeConfigurations.Add(
                    complexType, complexTypeConfiguration = new ComplexTypeConfiguration(complexType));
            }
            return complexTypeConfiguration;
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] public virtual ComplexTypeConfiguration ComplexType ( Type complexType ) { Check . NotNull ( complexType , " " ) ; if ( _entityConfigurations . ContainsKey ( complexType ) ) { throw Error . ComplexTypeConfigurationMismatch ( complexType . Name ) ; } ComplexTypeConfiguration complexTypeConfiguration ; if ( ! _complexTypeConfigurations . TryGetValue ( complexType , out complexTypeConfiguration ) ) { _complexTypeConfigurations . Add ( complexType , complexTypeConfiguration = new ComplexTypeConfiguration ( complexType ) ) ; } return complexTypeConfiguration ; }
Registers a type as a complex type in the model and returns an object that
can be used to configure the complex type.
Registers a type as a complex type in the model and returns an object that can be used to configure the complex type .
The configuration object for the specified entity type.
The configuration object for the specified entity type .
complexType
Type
The type to be registered or configured.
The type to be registered or configured .