//public static IIfPropertyElement<TEntity, TEntity> If<TEntity>(this IConventionsPolicy<TEntity> convensPolicy, Func<TEntity, bool> evaluator) public static IIfPropertyElement <TEntity, TEntity> If <TEntity>(this IConventionsPolicy <TEntity> convensPolicy, Func <IConventionParams <TEntity>, bool> evaluator) { var propElement = new IfPropertyElement <TEntity, TEntity>(evaluator, null, convensPolicy); return(propElement); }
//public static IIfPropertyElement<TEntity, TEntityProperty> WhereProperty<TEntity, TEntityProperty>(this IConventionsPolicy<TEntity> convensPolicy, Func<TEntity, bool> evaluator, Func<TEntity, TEntityProperty> prop) public static IIfPropertyElement <TEntity, TEntityProperty> WhereProperty <TEntity, TEntityProperty>(this IConventionsPolicy <TEntity> convensPolicy, Func <IConventionParams <TEntity>, bool> evaluator, Func <IConventionParams <TEntity>, IConventionParams <TEntityProperty> > prop) { var propElement = new IfPropertyElement <TEntity, TEntityProperty>(evaluator, prop, convensPolicy); return(propElement); }