Update exp to sql

This commit is contained in:
sunkaixuan
2025-10-22 13:21:27 +08:00
parent a601a2ffaa
commit f06d99e4e5
3 changed files with 3 additions and 0 deletions

View File

@@ -9,6 +9,7 @@ namespace SqlSugar
{
public partial class DefaultDbMethod : IDbMethods
{
public ISqlSugarClient sqlSugarClient { get; set; }
public virtual string ParameterKeyWord { get; set; }= "@";
public virtual string RowNumber(MethodCallExpressionModel model)
{

View File

@@ -11,6 +11,7 @@ namespace SqlSugar
{
public interface IDbMethods
{
ISqlSugarClient sqlSugarClient { get; set; }
string IIF(MethodCallExpressionModel model);
string HasNumber(MethodCallExpressionModel model);
string HasValue(MethodCallExpressionModel model);

View File

@@ -65,6 +65,7 @@ namespace SqlSugar
result = string.Join(",",(constant.Value+"").Split(',').Select(it=>this.Context.GetTranslationTableName(it)));
}
}
this.Context.DbMehtods.sqlSugarClient = this.Context?.SugarContext?.Context;
result = this.Context.DbMehtods.GetStringJoinSelector(result, ExpressionTool.GetExpressionValue(exp.Arguments[1]) + "");
return result;