Share via


IMutableModel.DelayConventions Method

Definition

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

Returns

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

Remarks

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

Applies to