コード例 #1
0
 internal VfpJoinExpression(VfpExpressionKind kind, TypeUsage collectionOfRowResultType, VfpExpressionBinding left, VfpExpressionBinding right, VfpExpression condition)
     : base(kind, collectionOfRowResultType)
 {
     Left          = ArgumentUtility.CheckNotNull("left", left);
     Right         = ArgumentUtility.CheckNotNull("right", right);
     JoinCondition = ArgumentUtility.CheckNotNull("condition", condition);
 }
コード例 #2
0
 internal VfpLikeExpression(TypeUsage resultType, VfpExpression argument, VfpExpression pattern, VfpExpression escape)
     : base(VfpExpressionKind.Like, resultType)
 {
     Argument = ArgumentUtility.CheckNotNull("argument", argument);
     Pattern  = ArgumentUtility.CheckNotNull("pattern", pattern);
     Escape   = ArgumentUtility.CheckNotNull("escape", escape);
 }
コード例 #3
0
 internal VfpLimitExpression(TypeUsage resultType, VfpExpression argument, VfpExpression limit, bool withTies)
     : base(VfpExpressionKind.Limit, resultType)
 {
     Argument = ArgumentUtility.CheckNotNull("argument", argument);
     Limit    = ArgumentUtility.CheckNotNull("limit", limit);
     WithTies = withTies;
 }
コード例 #4
0
 public VfpXmlToCursorExpression(VfpExpression property, VfpExpression parameter, string cursorName, Type itemType)
     : base(VfpExpressionKind.XmlToCursor, PrimitiveTypeKind.Boolean.ToTypeUsage())
 {
     Property   = ArgumentUtility.CheckNotNull("property", property);
     Parameter  = ArgumentUtility.CheckNotNull("parameter", parameter);
     CursorName = ArgumentUtility.CheckNotNullOrEmpty("cursorName", cursorName);
     ItemType   = ArgumentUtility.CheckNotNull("itemType", itemType);
 }
コード例 #5
0
 public VfpInsertCommandTree(VfpExpressionBinding target,
                             ReadOnlyCollection <VfpSetClause> setClauses,
                             IEnumerable <KeyValuePair <string, TypeUsage> > parameters,
                             VfpExpression returning = null)
     : base(target.Expression.ResultType, target, parameters)
 {
     SetClauses = ArgumentUtility.CheckNotNull("setClauses", setClauses);
     Returning  = returning;
 }
コード例 #6
0
 internal VfpCaseExpression(TypeUsage commonResultType,
                            VfpExpressionList whenExpressions,
                            VfpExpressionList thenExpressions,
                            VfpExpression elseExpression)
     : base(VfpExpressionKind.Case, commonResultType)
 {
     When = ArgumentUtility.CheckNotNull("whenExpressions", whenExpressions);
     Then = ArgumentUtility.CheckNotNull("thenExpressions", thenExpressions);
     Else = ArgumentUtility.CheckNotNull("elseExpression", elseExpression);
 }
コード例 #7
0
        public static VfpExpressionBinding BindAs(this VfpExpression input, string variableName)
        {
            var variable = input.ResultType.Variable(variableName);

            return(BindAs(input, variable));
        }
コード例 #8
0
 public static VfpComparisonExpression LessThan(this VfpExpression left, VfpExpression right)
 {
     return(new VfpComparisonExpression(VfpExpressionKind.LessThan, left.ResultType, left, right));
 }
コード例 #9
0
 public static VfpNotExpression Not(this VfpExpression argument, TypeUsage resultType)
 {
     return(new VfpNotExpression(resultType, argument));
 }
コード例 #10
0
 public static VfpLikeExpression Like(TypeUsage resultType, VfpExpression argument, VfpExpression pattern, VfpExpression escape)
 {
     return(new VfpLikeExpression(resultType, argument, pattern, escape));
 }
コード例 #11
0
 public static VfpXmlToCursorExpression XmlToCursor(VfpExpression property, VfpExpression parameter, string cursorName, Type itemType)
 {
     return(new VfpXmlToCursorExpression(property, parameter, cursorName, itemType));
 }
コード例 #12
0
 public static VfpXmlToCursorPropertyExpression XmlToCursorProperty(TypeUsage type, VfpExpression instance)
 {
     return(new VfpXmlToCursorPropertyExpression(type, instance));
 }
 internal VfpXmlToCursorPropertyExpression(TypeUsage resultType, VfpExpression instance)
     : base(VfpExpressionKind.XmlToCursorProperty, resultType)
 {
     Instance = ArgumentUtility.CheckNotNull("instance", instance);
 }
コード例 #14
0
 protected VfpUnaryExpression(VfpExpressionKind kind, TypeUsage resultType, VfpExpression argument)
     : base(kind, resultType)
 {
     Argument = ArgumentUtility.CheckNotNull("argument", argument);
 }
コード例 #15
0
 public VfpQueryCommandTree(VfpExpression query, IEnumerable <KeyValuePair <string, TypeUsage> > parameters)
     : base(query.ResultType, parameters)
 {
     Query = ArgumentUtility.CheckNotNull("query", query);
 }
コード例 #16
0
 public static VfpAndExpression And(this VfpExpression left, VfpExpression right)
 {
     return(new VfpAndExpression(left.ResultType, left, right));
 }
コード例 #17
0
        //public static VfpAndExpression And(TypeUsage type, VfpExpression left, VfpExpression right) {
        //    return new VfpAndExpression(type, left, right);
        //}

        public static VfpLikeCExpression LikeC(TypeUsage type, VfpExpression argument, VfpExpression pattern)
        {
            return(new VfpLikeCExpression(type, argument, pattern));
        }
コード例 #18
0
 internal VfpIsEmptyExpression(TypeUsage booleanResultType, VfpExpression argument)
     : base(VfpExpressionKind.IsEmpty, booleanResultType, argument)
 {
 }
コード例 #19
0
 public static VfpXmlToCursorScanExpression XmlToCursorScan(VfpExpression parameter, string cursorName)
 {
     return(new VfpXmlToCursorScanExpression(parameter, cursorName));
 }
コード例 #20
0
 internal VfpRefExpression(TypeUsage refResultType, EntitySet entitySet, VfpExpression refKeys)
     : base(VfpExpressionKind.Ref, refResultType, refKeys)
 {
     EntitySet = ArgumentUtility.CheckNotNull("entitySet", entitySet);
 }
コード例 #21
0
 public static VfpInExpression In(this VfpExpression expression, VfpExpressionList list)
 {
     return(new VfpInExpression(expression.ResultType, expression, list));
 }
コード例 #22
0
 public static VfpExpressionBinding BindAs(this VfpExpression input, VfpVariableReferenceExpression variable)
 {
     return(new VfpExpressionBinding(input, variable));
 }
コード例 #23
0
 public static VfpPropertyExpression Property(this VfpExpression expression, TypeUsage resultType, EdmMember property)
 {
     return(new VfpPropertyExpression(resultType, property, expression));
 }
コード例 #24
0
 public static VfpJoinExpression InnerJoin(this VfpExpressionBinding left, VfpExpressionBinding right, VfpExpression joinCondition, TypeUsage collectionOfRowResultType)
 {
     return(Join(VfpExpressionKind.InnerJoin, collectionOfRowResultType, left, right, joinCondition));
 }
コード例 #25
0
 public static VfpCastExpression Cast(this VfpExpression expression, TypeUsage type)
 {
     return(new VfpCastExpression(type, expression));
 }
コード例 #26
0
 public static VfpJoinExpression Join(VfpExpressionKind kind, TypeUsage collectionOfRowResultType, VfpExpressionBinding left, VfpExpressionBinding right, VfpExpression joinCondition)
 {
     return(new VfpJoinExpression(kind, collectionOfRowResultType, left, right, joinCondition));
 }
コード例 #27
0
 public static VfpComparisonExpression ExpressionEquals(this VfpExpression left, VfpExpression right)
 {
     return(new VfpComparisonExpression(VfpExpressionKind.Equals, left.ResultType, left, right));
 }
コード例 #28
0
 public static VfpProjectExpression Project(this VfpExpressionBinding input, VfpExpression projection)
 {
     return(new VfpProjectExpression(input.Expression.ResultType, input, projection));
 }
コード例 #29
0
 internal VfpNotExpression(TypeUsage resultType, VfpExpression argument)
     : base(VfpExpressionKind.Not, resultType, argument)
 {
 }
コード例 #30
0
 public static VfpFilterExpression Filter(this VfpExpressionBinding input, VfpExpression predicate)
 {
     return(new VfpFilterExpression(input.Expression.ResultType, input, predicate));
 }