mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-08 02:14:53 +08:00
Update oracle
This commit is contained in:
@@ -226,6 +226,16 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
foreach (var item in alterColumns)
|
foreach (var item in alterColumns)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (this.Context.CurrentConnectionConfig.DbType == DbType.Oracle)
|
||||||
|
{
|
||||||
|
var entityColumnItem = entityColumns.FirstOrDefault(y => y.DbColumnName == item.DbColumnName);
|
||||||
|
if (entityColumnItem!=null&&!string.IsNullOrEmpty(entityColumnItem.DataType))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
this.Context.DbMaintenance.UpdateColumn(tableName, EntityColumnToDbColumn(entityInfo, tableName, item));
|
this.Context.DbMaintenance.UpdateColumn(tableName, EntityColumnToDbColumn(entityInfo, tableName, item));
|
||||||
isChange = true;
|
isChange = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user