mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-06-28 04:35:29 +08:00
Update CodeFirst SqlServer [SqlServerCodeFirstNvarchar]
This commit is contained in:
parent
478dac6ae8
commit
06df67acfb
@ -726,7 +726,7 @@ AND syscomments.text LIKE '%"+tableName+"%'");
|
||||
}
|
||||
else if (item.DataType != null && this.Context.CurrentConnectionConfig?.MoreSettings?.SqlServerCodeFirstNvarchar == true)
|
||||
{
|
||||
if (!item.DataType.ToLower().Contains("nvarchar"))
|
||||
if (!item.DataType.ToLower().Contains("nvarchar")&&!item.DataType.EndsWith(")"))
|
||||
{
|
||||
item.DataType = item.DataType.ToLower().Replace("varchar", "nvarchar");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user