mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-11-07 18:04:55 +08:00
Update oracle
This commit is contained in:
@@ -226,6 +226,16 @@ namespace SqlSugar
|
||||
}
|
||||
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));
|
||||
isChange = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user