Table of Contents

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

builder ComplexPropertyBuilder

The ComplexPropertyBuilder to configure.

converterType Type

The 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

builder ComplexPropertyBuilder

The ComplexPropertyBuilder to configure.

Returns

ComplexPropertyBuilder

The same ComplexPropertyBuilder for chaining.

Type Parameters

TConverter

The type implementing IComplexTypeConverter.