Class KEFCoreSerDesConvention
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata.Conventions
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
A convention that resolves per-entity serialization type overrides at model finalization time, storing the results as model annotations on each IEntityType.
public class KEFCoreSerDesConvention : IModelFinalizingConvention, IConvention
- Inheritance
-
KEFCoreSerDesConvention
- Implements
- Inherited Members
Remarks
Reads KEFCoreSerDesAttribute from the entity CLR type. Only the types explicitly set are stored — omitted types inherit the context-level defaults from IKEFCoreSingletonOptions at serializer creation time.
Methods
ProcessModelFinalizing(IConventionModelBuilder, IConventionContext<IConventionModelBuilder>)
Called when a model is being finalized.
public void ProcessModelFinalizing(IConventionModelBuilder modelBuilder, IConventionContext<IConventionModelBuilder> context)
Parameters
modelBuilderIConventionModelBuilderThe builder for the model.
contextIConventionContext<IConventionModelBuilder>Additional information associated with convention execution.