You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
1.2 KiB
29 lines
1.2 KiB
using System.Linq.Expressions;
|
|
namespace SqlSugar
|
|
{
|
|
public class ConditionalExpressionResolve:BaseResolve
|
|
{
|
|
public ConditionalExpressionResolve(ExpressionParameter parameter) : base(parameter)
|
|
{
|
|
var express = base.Expression as ConditionalExpression;
|
|
var isLeft = parameter.IsLeft;
|
|
switch (base.Context.ResolveType)
|
|
{
|
|
case ResolveExpressType.None:
|
|
case ResolveExpressType.WhereSingle:
|
|
case ResolveExpressType.WhereMultiple:
|
|
case ResolveExpressType.SelectSingle:
|
|
case ResolveExpressType.SelectMultiple:
|
|
case ResolveExpressType.FieldSingle:
|
|
case ResolveExpressType.FieldMultiple:
|
|
case ResolveExpressType.Join:
|
|
case ResolveExpressType.ArraySingle:
|
|
case ResolveExpressType.ArrayMultiple:
|
|
case ResolveExpressType.Update:
|
|
default:
|
|
Check.Exception(true, "Does not support it.xx==value ? true:false , Use SqlFunc.IIF (it.xx==value,true,false)");
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|