Browse Source

Mapping Bug

pull/12/MERGE
sunkaixuan 8 years ago
parent
commit
31dcf68950
  1. 2
      SqlSugar/SqlSugarAccessory.cs

2
SqlSugar/SqlSugarAccessory.cs

@ -73,7 +73,7 @@ namespace SqlSugar
this.IgnoreColumns = new IgnoreComumnList();
if (!this.MappingTables.Any(it => it.EntityName == entityInfo.EntityName))
{
if (entityInfo.DbTableName != entityInfo.EntityName)
if (entityInfo.DbTableName != entityInfo.EntityName && entityInfo.DbTableName.IsValuable())
{
this.MappingTables.Add(entityInfo.EntityName, entityInfo.DbTableName);
}

Loading…
Cancel
Save