Class KEFCoreProducerConvention
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata.Conventions
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
A convention that resolves per-entity producer configuration overrides at model finalization time, storing the result as a KEFCoreProducerAnnotation on each IEntityType.
public class KEFCoreProducerConvention : IModelFinalizingConvention, IConvention
- Inheritance
-
KEFCoreProducerConvention
- Implements
- Inherited Members
Remarks
Reads KEFCoreProducerAttribute from the entity CLR type. Only properties explicitly set on the attribute are stored — omitted properties inherit the global ProducerConfig at producer 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.