Browse Source

Update exp to sql

pull/12/MERGE
skx 4 years ago
parent
commit
dda803e54a
  1. 1
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/Common/MethodCallExpressionModel.cs
  2. 1
      Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

1
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/Common/MethodCallExpressionModel.cs

@ -11,6 +11,7 @@ namespace SqlSugar
public List<MethodCallExpressionArgs> Args { get; set; }
public string Name { get; set; }
public dynamic Data { get; set; }
public Expression Expression { get; set; }
}
public class MethodCallExpressionArgs

1
Src/Asp.NetCore2/SqlSeverTest/SqlSugar/ExpressionsToSql/ResolveItems/MethodCallExpressionResolve.cs

@ -489,6 +489,7 @@ namespace SqlSugar
{
if (IsExtMethod(name))
{
model.Expression = this.Expression;
DbType type = DbType.SqlServer;
if (this.Context is SqlServerExpressionContext)
type = DbType.SqlServer;

Loading…
Cancel
Save