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

 

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

Namespace:   System.Data.Entity.ModelConfiguration.Configuration
Assembly:  EntityFramework (in EntityFramework.dll)

public TypeConventionWithHavingConfiguration<T> Having<T>(
	Func<Type, T> capturingPredicate
)
where T : class

Parameters

capturingPredicate
Type: System.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.

Type Parameters

T

Type of the captured value.