PropertyConventionConfiguration.Having<T> Method (Func<PropertyInfo, T>)
Filters the properties that this convention applies to based on a predicate while capturing a value to use later during configuration.
Assembly: EntityFramework (in EntityFramework.dll)
public PropertyConventionWithHavingConfiguration<T> Having<T>( Func<PropertyInfo, T> capturingPredicate ) where T : class
Parameters
- capturingPredicate
-
Type:
System.Func<PropertyInfo, T>
A function to capture a value for each property. If the value is null, the property will be filtered out.
Return Value
Type: System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionWithHavingConfiguration<T>A PropertyConventionWithHavingConfiguration<T> instance so that multiple calls can be chained.
Type Parameters
- T
Type of the captured value.