/// <summary> /// 创建数据集函数表达式。 /// </summary> /// <param name="func">函数的CLR对象。</param> /// <param name="kind">函数种类。</param> /// <param name="argus">函数参数。</param> public DbSetFunctionExpression(MethodInfo func, EMapFunctionKind kind, params DbExpression[] argus) : base(func, kind, argus) { ReturnClrType = func.ReturnType.GetGenericArguments()[0]; }
/// <summary> /// 创建标量函数调用表达式。 /// </summary> /// <param name="func">CLR函数对象。</param> /// <param name="kind">函数种类。</param> /// <param name="argus">函数参数。</param> public DbScalarFunctionExpression(MemberInfo func, EMapFunctionKind kind, params DbExpression[] argus) : base(func, kind, argus) { }
/// <summary> /// 创建数据项函数表达式。 /// </summary> /// <param name="func">函数CLR描述对象。</param> /// <param name="kind">函数映射种类。</param> /// <param name="argus">函数参数。</param> public DbItemFunctionExpression(MethodInfo func, EMapFunctionKind kind, params DbExpression[] argus) : base(func, kind, argus) { }
/// <summary> /// 创建函数映射表达式。 /// </summary> /// <param name="func">函数CLR描述对象。</param> /// <param name="kind">映射种类。</param> /// <param name="argus">函数参数。</param> public DbMapFunctionExpression(MemberInfo func, EMapFunctionKind kind, DbExpression[] argus) : base(func, argus) { Kind = kind; }