Browse Source

Update Core

pull/19/head
sunkaixuan 3 years ago
parent
commit
8d3910df9b
  1. 4
      Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs
  2. 1
      Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs
  3. 3
      Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs

4
Src/Asp.NetCore2/SqlSugar/Abstract/InsertableProvider/ParameterInsertable.cs

@ -57,7 +57,7 @@ namespace SqlSugar
result +=this.Context.SaveQueues(false);
});
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
return objects.Length;
result=objects.Length;
return result;
}
public async Task<int> DefaultExecuteCommandAsync()
@ -84,7 +84,7 @@ namespace SqlSugar
this.Context.AddQueue("end");
result += await this.Context.SaveQueuesAsync(false);
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
return objects.Length;
result= objects.Length;
return result;
});
return result;

1
Src/Asp.NetCore2/SqlSugar/Entities/DbColumnInfo.cs

@ -23,5 +23,6 @@ namespace SqlSugar
public int Scale { get; set; }
public bool IsArray { get; set; }
internal bool IsJson { get; set; }
public bool? IsUnsigned { get; set; }
}
}

3
Src/Asp.NetCore2/SqlSugar/Realization/MySql/DbMaintenance/MySqlDbMaintenance.cs

@ -34,7 +34,8 @@ namespace SqlSugar
CASE WHEN is_nullable = 'YES'
THEN true ELSE false END AS `IsNullable`,
numeric_scale as Scale,
numeric_scale as DecimalDigits
numeric_scale as DecimalDigits,
LOCATE( 'unsigned',COLUMN_type ) >0 as IsUnsigned
FROM
Information_schema.columns where TABLE_NAME='{0}' and TABLE_SCHEMA=(select database()) ORDER BY ordinal_position";
return sql;

Loading…
Cancel
Save