mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-01 19:15:10 +08:00
Update oracle
This commit is contained in:
parent
cb8c541a0b
commit
cc5fdcff19
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user