TypeConventionConfiguration.Having<T>(Func<Type,T>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Filters the entity types that this convention applies to based on a predicate while capturing a value to use later during configuration.
public System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<T> Having<T> (Func<Type,T> capturingPredicate) where T : class;
member this.Having : Func<Type, 'T (requires 'T : null)> -> System.Data.Entity.ModelConfiguration.Configuration.TypeConventionWithHavingConfiguration<'T (requires 'T : null)> (requires 'T : null)
Public Function Having(Of T As Class) (capturingPredicate As Func(Of Type, T)) As TypeConventionWithHavingConfiguration(Of T)
Type Parameters
- T
Type of the captured value.
Parameters
A function to capture a value for each entity type. If the value is null, the entity type will be filtered out.
Returns
An TypeConventionWithHavingConfiguration<T> instance so that multiple calls can be chained.
Applies to
Entity Framework