System\Data\Common\CommandTrees\ExpressionBuilder\DbExpressionBuilder.cs (7)
1791private static DbExpressionBinding[] ConvertToBinding(DbExpression left, string leftArgumentName, DbExpression right, string rightArgumentName, Func<DbExpression, DbExpression, DbExpression> argument, string argumentName, out DbExpression argumentExp)
1907private static DbApplyExpression CreateApply(DbExpression source, Func<DbExpression, KeyValuePair<string, DbExpression>> apply, Func<DbExpressionBinding, DbExpressionBinding, DbApplyExpression> resultBuilder)
2064public static DbJoinExpression FullOuterJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition)
2098public static DbJoinExpression InnerJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition)
2132public static DbJoinExpression LeftOuterJoin(this DbExpression left, DbExpression right, Func<DbExpression, DbExpression, DbExpression> joinCondition)
2222public static DbProjectExpression Join<TSelector>(this DbExpression outer, DbExpression inner, Func<DbExpression, DbExpression> outerKey, Func<DbExpression, DbExpression> innerKey, Func<DbExpression, DbExpression, TSelector> selector)
2437public static DbProjectExpression SelectMany<TSelector>(this DbExpression source, Func<DbExpression, DbExpression> apply, Func<DbExpression, DbExpression, TSelector> selector)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\ArgumentValidation.cs (1)
175private static EnumerableValidator<TElementIn, TElementOut, TResult> CreateValidator<TElementIn, TElementOut, TResult>(IEnumerable<TElementIn> argument, string argumentName, Func<TElementIn, int, TElementOut> convertElement, Func<List<TElementOut>, TResult> createResult)
System\Data\Common\CommandTrees\ExpressionBuilder\Internal\EnumerableValidator.cs (6)
37private Func<TElementIn, int, TElementOut> map;
39private Func<TElementIn, int, string> deriveName;
62public Func<TElementIn, int, TElementOut> ConvertElement { get { return this.map; } set { this.map = value; } }
74public Func<TElementIn, int, string> GetName { get { return this.deriveName; } set { this.deriveName = value; } }
102Func<TElementIn, int, TElementOut> map,
104Func<TElementIn, int, string> deriveName)
System\Data\Common\EntitySql\FunctionOverloadResolver.cs (11)
54Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
55Func<TypeUsage, TypeUsage, bool> isPromotableTo,
56Func<TypeUsage, TypeUsage, bool> isStructurallyEqual,
88Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
89Func<TypeUsage, TypeUsage, bool> isPromotableTo,
90Func<TypeUsage, TypeUsage, bool> isStructurallyEqual,
196Func<TypeUsage, TypeUsage, IEnumerable<TypeUsage>> flattenParameterType,
197Func<TypeUsage, TypeUsage, bool> isPromotableTo,
198Func<TypeUsage, TypeUsage, bool> isStructurallyEqual,
282Func<TypeUsage, TypeUsage, bool> isPromotableTo,
283Func<TypeUsage, TypeUsage, bool> isStructurallyEqual)
System\Data\Common\Internal\Materialization\CoordinatorScratchpad.cs (5)
310private static readonly MethodInfo s_userMaterializationFuncInvokeMethod = typeof(Func<DbDataReader, object[], object>).GetMethod("Invoke");
372var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(nex, _reader, _values).Compile();
448var userMaterializationFunc = Expression.Lambda<Func<DbDataReader, object[], object>>(newMemberInit, _reader, _values).Compile();
System\Data\Common\Internal\Materialization\Shaper.cs (8)
810private readonly Func<DbDataReader, int, T> getTypedValue;
811private readonly Func<DbDataReader, int, object> getUntypedValue;
813protected ErrorHandlingValueReader(Func<DbDataReader, int, T> typedValueAccessor, Func<DbDataReader, int, object> untypedValueAccessor)
916internal ColumnErrorHandlingValueReader(Func<DbDataReader, int, TColumn> typedAccessor, Func<DbDataReader, int, object> untypedAccessor)
944internal PropertyErrorHandlingValueReader(string propertyName, string typeName, Func<DbDataReader, int, TProperty> typedAccessor, Func<DbDataReader, int, object> untypedAccessor)
System\Data\Mapping\ViewGeneration\Structures\MemberRestriction.cs (9)
246Func<object, object, string> resourceName1 = null;
256resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsNotEqualTo : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustNotBeEqualTo;
260resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsNotOneOf : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustNotBeOneOf;
271resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsEqualTo : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustBeEqualTo;
275resourceName1 = isTypeConstant ? (Func<object, object, string>)Strings.ViewGen_OneOfConst_IsOneOf : (Func<object, object, string>)Strings.ViewGen_OneOfConst_MustBeOneOf;
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (5)
96Func<RelationshipManager, RelatedEnd, RelatedEnd> getRelatedEnd = sourceMember.GetRelatedEnd;
466private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod(AssociationEndMember sourceMember, AssociationEndMember targetMember)
481return (Func<RelationshipManager, RelatedEnd, RelatedEnd>)getRelatedEndDelegate;
484private static Func<RelationshipManager, RelatedEnd, RelatedEnd> CreateGetRelatedEndMethod<TSource, TTarget>(AssociationEndMember sourceMember, AssociationEndMember targetMember, NavigationPropertyAccessor sourceAccessor, NavigationPropertyAccessor targetAccessor)
488Func<RelationshipManager, RelatedEnd, RelatedEnd> getRelatedEnd;
System\Data\Objects\ELinq\EntityExpressionVisitor.cs (3)
384internal static Expression Visit(Expression exp, Func<Expression, Func<Expression, Expression>, Expression> visit)
392private readonly Func<Expression, Func<Expression, Expression>, Expression> _visit;
393internal BasicExpressionVisitor(Func<Expression, Func<Expression, Expression>, Expression> visit)
System\Data\Objects\Internal\EntityProxyFactory.cs (4)
888Type interceptorType = typeof(Func<,,>).MakeGenericType(typeBuilder, baseProperty.PropertyType, typeof(bool));
889MethodInfo interceptorInvoke = TypeBuilder.GetMethod(interceptorType, typeof(Func<,,>).GetMethod("Invoke"));
1062static readonly MethodInfo s_Func_object_object_bool_Invoke = typeof(Func<object, object, bool>).GetMethod("Invoke", new Type[] { typeof(object), typeof(object) });
1142_compareByteArraysField = typeBuilder.DefineField(EntityProxyFactory.CompareByteArraysFieldName, typeof(Func<object, object, bool>), FieldAttributes.Private | FieldAttributes.Static);
System\Data\Objects\Internal\EntityProxyTypeInfo.cs (5)
33private readonly Func<object, string, object> _baseGetter;
38private readonly Func<object, object, object> Proxy_SetEntityWrapper; // IEntityWrapper Func(object proxy, IEntityWrapper value)
103Proxy_SetEntityWrapper = Expression.Lambda<Func<object, object, object>>(
116_baseGetter = Expression.Lambda<Func<object, string, object>>(
151public Func<object, string, object> BaseGetter
System\Data\SqlClient\SqlTypesAssembly.cs (9)
507private readonly Func<string, int, object> sqlGeographyFromWKTString;
508private readonly Func<byte[], int, object> sqlGeographyFromWKBByteArray;
509private readonly Func<System.Xml.XmlReader, int, object> sqlGeographyFromGMLReader;
511private readonly Func<string, int, object> sqlGeometryFromWKTString;
512private readonly Func<byte[], int, object> sqlGeometryFromWKBByteArray;
513private readonly Func<System.Xml.XmlReader, int, object> sqlGeometryFromGMLReader;
517private static Func<TArg, int, object> CreateStaticConstructorDelegate<TArg>(Type spatialType, string methodName)
528var ex = Expression.Lambda<Func<TArg, int, object>>(Expression.Call(null, staticCtorMethod, sqlData, sridParam), dataParam, sridParam);
529var result = ex.Compile();