mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-05 13:17:57 +08:00
Update exp to sql
This commit is contained in:
parent
f03d844262
commit
3a2a97f56f
@ -263,7 +263,7 @@ namespace SqlSugar
|
||||
resolveExpress.SqlFuncServices = Context.CurrentConnectionConfig.ConfigureExternalServices == null ? null : Context.CurrentConnectionConfig.ConfigureExternalServices.SqlFuncServices;
|
||||
};
|
||||
resolveExpress.Resolve(expression, resolveType);
|
||||
this.Parameters.AddRange(resolveExpress.Parameters.Select(it => new SugarParameter(it.ParameterName, it.Value,it.DbType)));
|
||||
this.Parameters.AddRange(resolveExpress.Parameters.Select(it => new SugarParameter(it.ParameterName, it.Value, it.DbType) { Size=it.Size}));
|
||||
var result = resolveExpress.Result;
|
||||
var isSingleTableHasSubquery = IsSingle() && resolveExpress.SingleTableNameSubqueryShortName.HasValue();
|
||||
if (isSingleTableHasSubquery)
|
||||
|
@ -40,6 +40,6 @@ namespace SqlSugar
|
||||
public Type UnderType { get; set; }
|
||||
public Navigate Navigat { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
public int? SqlParameterSize { get; set; }
|
||||
public object SqlParameterSize { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -205,7 +205,7 @@ namespace SqlSugar
|
||||
}
|
||||
|
||||
public object SqlParameterDbType { get; set; }
|
||||
public int? SqlParameterSize { get; set; }
|
||||
public object SqlParameterSize { get; set; }
|
||||
public int CreateTableFieldSort { get; set; }
|
||||
}
|
||||
|
||||
|
@ -180,7 +180,7 @@ namespace SqlSugar
|
||||
var p = new SugarParameter(appendValue, value, (System.Data.DbType)columnInfo.SqlParameterDbType);
|
||||
if (columnInfo.SqlParameterSize != null)
|
||||
{
|
||||
p.Size = columnInfo.SqlParameterSize.Value;
|
||||
p.Size = columnInfo.SqlParameterSize.ObjToInt();
|
||||
}
|
||||
this.Context.Parameters.Add(p);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user