Synchronization code

This commit is contained in:
sunkaixuan 2023-05-08 22:31:32 +08:00
parent 764c1008ca
commit 7bc7ed3efa

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
{