Пример #1
0
 public virtual CaseTestExpression Update(CaseTestExpression test, Evaluant.NLinq.Expressions.Expression exp, Evaluant.NLinq.Expressions.Expression result)
 {
     if (test.TestExpression != exp || test.TestResult != result)
         return new CaseTestExpression(exp, result);
     return test;
 }
Пример #2
0
 public virtual IAliasedExpression Update(CaseExpression item, Evaluant.NLinq.Expressions.Expression test, IDbExpression result, CaseTestExpression[] tests, TableAlias alias)
 {
     if (item.Test != test || item.DefaultResult != result || item.CaseTests != tests || item.Alias != alias)
         return new CaseExpression(alias, (IDbExpression)test, (IDbExpression)result, tests);
     return item;
 }
Пример #3
0
 public override CaseTestExpression Visit(CaseTestExpression test)
 {
     writer.Write("WHEN ");
     Visit(test.TestExpression);
     writer.Write(" THEN ");
     Visit(test.TestResult);
     return test;
 }