mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-04-24 18:04:52 +08:00
MySql BUG
This commit is contained in:
parent
455cdc5e1e
commit
3aa384212e
@ -596,6 +596,14 @@ namespace SqlSugar
|
||||
}
|
||||
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();
|
||||
QueryBuilder.IsCount = true;
|
||||
int result = 0;
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user