Browse Source

update dm exp to sql

pull/12/head
sunkaixuna 3 years ago
parent
commit
e7b8ee65dc
  1. 6
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Dm/SqlBuilder/DmExpressionContext.cs

6
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/Realization/Dm/SqlBuilder/DmExpressionContext.cs

@ -196,5 +196,11 @@ namespace SqlSugar
{ {
return string.Format("instr ({0},{1},1,1) ", model.Args[0].MemberName, model.Args[1].MemberName); return string.Format("instr ({0},{1},1,1) ", model.Args[0].MemberName, model.Args[1].MemberName);
} }
public override string ToDecimal(MethodCallExpressionModel model)
{
var parameter = model.Args[0];
return string.Format(" CAST({0} AS decimal(18,4))", parameter.MemberName);
}
} }
} }

Loading…
Cancel
Save