mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-05-04 04:37:58 +08:00
Update Code first
This commit is contained in:
parent
c6bbd15552
commit
d5fc3be4d5
@ -321,12 +321,18 @@ namespace SqlSugar
|
|||||||
else if (column.Length > 0)
|
else if (column.Length > 0)
|
||||||
{
|
{
|
||||||
column.DataType = "varchar";
|
column.DataType = "varchar";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
column.DataType = "varchar(4000)";
|
column.DataType = "varchar(4000)";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (column.UnderType == typeof(TimeSpan) && column.DataType == null)
|
||||||
|
{
|
||||||
|
column.DataType = "time";
|
||||||
|
column.Length = 0;
|
||||||
|
column.DecimalDigits = 0;
|
||||||
|
}
|
||||||
else if (typeof(Nvarchar2PropertyConvert).Equals(sugarColumn.SqlParameterDbType)&&column.DataType==null)
|
else if (typeof(Nvarchar2PropertyConvert).Equals(sugarColumn.SqlParameterDbType)&&column.DataType==null)
|
||||||
{
|
{
|
||||||
column.DataType = "nvarchar2";
|
column.DataType = "nvarchar2";
|
||||||
|
Loading…
Reference in New Issue
Block a user