mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-25 10:08:11 +08:00
MySql BUG
This commit is contained in:
parent
455cdc5e1e
commit
3aa384212e
@ -596,6 +596,14 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
public virtual int Count()
|
public virtual int Count()
|
||||||
{
|
{
|
||||||
|
if (QueryBuilder.EntityName== "ExpandoObject" && this.Context.MappingTables.Any(it => it.EntityName == "ExpandoObject"))
|
||||||
|
{
|
||||||
|
if (OldMappingTableList == null)
|
||||||
|
{
|
||||||
|
OldMappingTableList = new MappingTableList();
|
||||||
|
}
|
||||||
|
OldMappingTableList.Add("ExpandoObject", this.Context.MappingTables.First(it => it.EntityName == "ExpandoObject").DbTableName);
|
||||||
|
}
|
||||||
InitMapping();
|
InitMapping();
|
||||||
QueryBuilder.IsCount = true;
|
QueryBuilder.IsCount = true;
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user