Update unit test

This commit is contained in:
sunkaixuan
2022-04-19 14:03:14 +08:00
parent 26da8525f6
commit ca36e8e4b1
2 changed files with 42 additions and 40 deletions

View File

@@ -353,6 +353,7 @@ namespace SqlSugar
{
var type = types[0];
var entityInfo = this.Context.EntityMaintenance.GetEntityInfo(type);
this.Context.InitMappingInfo(type);
Check.ExceptionEasy(newExp.Type != entityInfo.Type, $" new {newExp.Type .Name}is error ,use Select(it=>new {entityInfo.Type.Name})",$"new {newExp.Type.Name}是错误的请使用Select(it=>new {entityInfo.Type.Name})");
if (entityInfo.Columns.Count(x => x.Navigat != null) == 0)
{