Share via


PropertyConventionConfiguration.Having<T> Method

Definition

Filters the properties that this convention applies to based on a predicate while capturing a value to use later during configuration.

public System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionWithHavingConfiguration<T> Having<T> (Func<System.Reflection.PropertyInfo,T> capturingPredicate) where T : class;
member this.Having : Func<System.Reflection.PropertyInfo, 'T (requires 'T : null)> -> System.Data.Entity.ModelConfiguration.Configuration.PropertyConventionWithHavingConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Having(Of T As Class) (capturingPredicate As Func(Of PropertyInfo, T)) As PropertyConventionWithHavingConfiguration(Of T)

Type Parameters

T

Type of the captured value.

Parameters

capturingPredicate
Func<PropertyInfo,T>

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

Returns

A PropertyConventionWithHavingConfiguration<T> instance so that multiple calls can be chained.

Applies to