Browse Source

Optimize the MYSQL

SqlSugar5
sunkaixuan 2 years ago
parent
commit
974f384d4d
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderManyToMany.cs
  2. 4
      Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavManyToMany.cs

4
Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/InsertNavProviderManyToMany.cs

@ -57,6 +57,10 @@ namespace SqlSugar
{
keyValuePairs.Add(pair.DbColumnName, DateTime.Now);
}
else if (pair.UnderType == UtilConstants.StringType)
{
keyValuePairs.Add(pair.DbColumnName, UtilConstants.Space);
}
else
{
keyValuePairs.Add(pair.DbColumnName, UtilMethods.GetDefaultValue(pair.UnderType));

4
Src/Asp.Net/SqlSugar/Abstract/ExecuteNavProvider/UpdateNavManyToMany.cs

@ -67,6 +67,10 @@ namespace SqlSugar
{
keyValuePairs.Add(pair.DbColumnName, DateTime.Now);
}
else if (pair.UnderType == UtilConstants.StringType)
{
keyValuePairs.Add(pair.DbColumnName, UtilConstants.Space);
}
else
{
keyValuePairs.Add(pair.DbColumnName, UtilMethods.GetDefaultValue(pair.UnderType));

Loading…
Cancel
Save