IConventionContext.DelayConventions Method


Prevents conventions from being executed immediately when a metadata aspect is modified. All the delayed conventions will be executed after the returned object is disposed.

public Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionBatch DelayConventions ();
abstract member DelayConventions : unit -> Microsoft.EntityFrameworkCore.Metadata.Conventions.IConventionBatch
Public Function DelayConventions () As IConventionBatch


An object that should be disposed to execute the delayed conventions.


This is useful when performing multiple operations that depend on each other.

Applies to