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.
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.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<T, TValue>An TypeConventionWithHavingConfiguration<T, TValue> instance so that multiple calls can be chained.
Type Parameters
- TValue
Type of the captured value.