Class KEFCoreComplexPropertyBuilderExtensions
- Namespace
- MASES.EntityFrameworkCore.KNet.Extensions
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Extension methods on ComplexPropertyBuilder for KEFCore-specific complex type configuration.
public static class KEFCoreComplexPropertyBuilderExtensions
- Inheritance
-
KEFCoreComplexPropertyBuilderExtensions
- Inherited Members
Remarks
These methods allow associating an IComplexTypeConverter with a complex property via the fluent API, as an alternative to KEFCoreComplexTypeConverterAttribute. The converter is registered in IComplexTypeConverterFactory at model finalization time by KEFCoreComplexTypeConverterConvention.
Methods
HasKEFCoreComplexTypeConverter(ComplexPropertyBuilder, Type)
Associates a IComplexTypeConverter with this complex property, registering it in IComplexTypeConverterFactory at model finalization time.
public static ComplexPropertyBuilder HasKEFCoreComplexTypeConverter(this ComplexPropertyBuilder builder, Type converterType)
Parameters
builderComplexPropertyBuilderThe ComplexPropertyBuilder to configure.
converterTypeTypeThe Type implementing IComplexTypeConverter.
Returns
- ComplexPropertyBuilder
The same ComplexPropertyBuilder for chaining.
HasKEFCoreComplexTypeConverter<TConverter>(ComplexPropertyBuilder)
Associates a IComplexTypeConverter with this complex property, registering it in IComplexTypeConverterFactory at model finalization time.
public static ComplexPropertyBuilder HasKEFCoreComplexTypeConverter<TConverter>(this ComplexPropertyBuilder builder) where TConverter : IComplexTypeConverter
Parameters
builderComplexPropertyBuilderThe ComplexPropertyBuilder to configure.
Returns
- ComplexPropertyBuilder
The same ComplexPropertyBuilder for chaining.
Type Parameters
TConverterThe type implementing IComplexTypeConverter.