Class KEFCoreRocksDbLifecycleAttributeConvention
- Namespace
- MASES.EntityFrameworkCore.KNet.Metadata.Conventions
- Assembly
- MASES.EntityFrameworkCore.KNet.dll
Reads KEFCoreRocksDbLifecycleAttribute from CLR entity types and writes the corresponding KEFCore RocksDB lifecycle metadata into the EF Core model.
public sealed class KEFCoreRocksDbLifecycleAttributeConvention : IModelFinalizingConvention, IConvention
- Inheritance
-
KEFCoreRocksDbLifecycleAttributeConvention
- Implements
- Inherited Members
Remarks
Fluent API is expected to win over data annotations according to standard EF Core precedence rules.
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.