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

 

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, TValue> Having<TValue>(
	Func<Type, TValue> capturingPredicate
)
where TValue : class

Parameters

capturingPredicate
Type: System.Func<Type, TValue>

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

Type Parameters

TValue

Type of the captured value.