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.

Namespace:   System.Data.Entity.ModelConfiguration.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.

Type Parameters

T

Type of the captured value.