Share via


FluentApiCodeFragment.FilterChain Method

Definition

Creates a new method chain with calls filtered based on a predicate.

public virtual Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment? FilterChain (Func<Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment,bool> predicate);
abstract member FilterChain : Func<Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment, bool> -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
override this.FilterChain : Func<Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment, bool> -> Microsoft.EntityFrameworkCore.Design.FluentApiCodeFragment
Public Overridable Function FilterChain (predicate As Func(Of FluentApiCodeFragment, Boolean)) As FluentApiCodeFragment

Parameters

predicate
Func<FluentApiCodeFragment,Boolean>

A function to test each method call for a condition.

Returns

A new method chain that only contains calls from the original one that satisfy the condition.

Applies to