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