mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-06 13:47:59 +08:00
Update oracle code first
This commit is contained in:
parent
96f1364ebe
commit
d3e641a6ee
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using SqlSugar.DbConvert;
|
||||||
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
@ -317,7 +318,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
column.DataType = "json";
|
column.DataType = "json";
|
||||||
}
|
}
|
||||||
else if (column.Length > 0)
|
else if (column.Length > 0)
|
||||||
{
|
{
|
||||||
column.DataType = "varchar";
|
column.DataType = "varchar";
|
||||||
}
|
}
|
||||||
@ -326,6 +327,14 @@ namespace SqlSugar
|
|||||||
column.DataType = "varchar(4000)";
|
column.DataType = "varchar(4000)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (typeof(Nvarchar2PropertyConvert).Equals(sugarColumn.SqlParameterDbType)&&column.DataType==null)
|
||||||
|
{
|
||||||
|
column.DataType = "nvarchar2";
|
||||||
|
if (column.Length == 0)
|
||||||
|
{
|
||||||
|
column.Length = 200;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user