Update oracle code first

This commit is contained in:
sunkaixuan 2023-05-08 22:28:39 +08:00
parent 96f1364ebe
commit d3e641a6ee

View File

@ -1,4 +1,5 @@
using System;
using SqlSugar.DbConvert;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
@ -317,7 +318,7 @@ namespace SqlSugar
{
column.DataType = "json";
}
else if (column.Length > 0)
else if (column.Length > 0)
{
column.DataType = "varchar";
}
@ -326,6 +327,14 @@ namespace SqlSugar
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
{