mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-31 15:56:25 +08:00
Synchronization code
This commit is contained in:
parent
d83e6ce3c5
commit
2ac3c70055
@ -968,6 +968,10 @@ namespace SqlSugar
|
||||
{
|
||||
return this.Select<TResult>(expression);
|
||||
}
|
||||
if (this.QueryBuilder.TableShortName.IsNullOrEmpty())
|
||||
{
|
||||
this.QueryBuilder.TableShortName = clone.QueryBuilder.TableShortName;
|
||||
}
|
||||
this.QueryBuilder.Parameters = ps.Parameters;
|
||||
this.QueryBuilder.LambdaExpressions.ParameterIndex = clone.QueryBuilder.LambdaExpressions.ParameterIndex;
|
||||
var parameters = (expression as LambdaExpression).Parameters;
|
||||
|
@ -402,7 +402,7 @@ namespace SqlSugar
|
||||
column.Length = row["numericprecision"].ObjToInt();
|
||||
column.Scale = row["numericscale"].ObjToInt();
|
||||
column.DecimalDigits = row["numericscale"].ObjToInt();
|
||||
if (column.Length == 38 && column.Scale == 0)
|
||||
if (column.Length == 38 && column.Scale==0)
|
||||
{
|
||||
column.Length = 22;
|
||||
}
|
||||
@ -413,6 +413,7 @@ namespace SqlSugar
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
private List<DbColumnInfo> GetOracleDbType(string tableName)
|
||||
{
|
||||
var sql0 = $@"select
|
||||
@ -449,6 +450,7 @@ namespace SqlSugar
|
||||
var columns = this.Context.Ado.SqlQuery<DbColumnInfo>(sql0);
|
||||
return columns;
|
||||
}
|
||||
|
||||
private List<string> GetPrimaryKeyByTableNames(string tableName)
|
||||
{
|
||||
string cacheKey = "DbMaintenanceProvider.GetPrimaryKeyByTableNames." + this.SqlBuilder.GetNoTranslationColumnName(tableName).ToLower();
|
||||
|
Loading…
Reference in New Issue
Block a user