Share via


TypeConventionConfiguration.Having<T>(Func<Type,T>) Method

Definition

Filters the entity types that this convention applies to based on a predicate while capturing a value to use later during configuration.

public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<T> Having<T> (Func<Type,T> capturingPredicate) where T : class;
member this.Having : Func<Type, 'T (requires 'T : null)> -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Having(Of T As Class) (capturingPredicate As Func(Of Type, T)) As TypeConventionWithHavingConfiguration(Of T)

Type Parameters

T

Type of the captured value.

Parameters

capturingPredicate
Func<Type,T>

A function to capture a value for each entity type. If the value is null, the entity type will be filtered out.

Returns

An TypeConventionWithHavingConfiguration<T> instance so that multiple calls can be chained.

Applies to