mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-07-17 19:37:34 +08:00
Optimization tips
This commit is contained in:
parent
dacf79e5af
commit
ff97b8afbe
@ -368,7 +368,7 @@ namespace SqlSugar
|
|||||||
var dbColumn = entityInfo.Columns.FirstOrDefault(z => z.PropertyName == it.Key);
|
var dbColumn = entityInfo.Columns.FirstOrDefault(z => z.PropertyName == it.Key);
|
||||||
if (dbColumn == null&&entityInfo.Discrimator==null)
|
if (dbColumn == null&&entityInfo.Discrimator==null)
|
||||||
{
|
{
|
||||||
Check.ExceptionEasy($"{entityInfo.EntityName} no SugarIndex[ {it.Key} ] found", $"类{entityInfo.EntityName} 索引特性没找到列 :{it.Key}");
|
Check.ExceptionEasy($"{entityInfo.EntityName} no SugarIndex[ {it.Key} ] found", $"类{entityInfo.EntityName} 索引特性没找到属性名 :{it.Key}");
|
||||||
}
|
}
|
||||||
return new KeyValuePair<string, OrderByType>(dbColumn.DbColumnName, it.Value);
|
return new KeyValuePair<string, OrderByType>(dbColumn.DbColumnName, it.Value);
|
||||||
})
|
})
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
<package >
|
<package >
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>SqlSugarCore</id>
|
<id>SqlSugarCore</id>
|
||||||
<version>5.1.4.198-preview09</version>
|
<version>5.1.4.198-preview12</version>
|
||||||
<authors>sunkaixuan</authors>
|
<authors>sunkaixuan</authors>
|
||||||
<owners>果糖大数据科技</owners>
|
<owners>果糖大数据科技</owners>
|
||||||
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
<licenseUrl>http://www.apache.org/licenses/LICENSE-2.0.html</licenseUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user