From 33daa85d316c3ff07475beb86fe17952c850592b Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Sun, 14 Oct 2018 13:15:11 +0800 Subject: [PATCH] - --- Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs b/Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs index 3f68d140f..4f615e2ff 100644 --- a/Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs +++ b/Src/Asp.Net/SqlServerTest/Demos/G_Mapper.cs @@ -37,6 +37,8 @@ namespace OrmTest.Demo it.Schools = allSchools.Where(i => i.Id == it.SchoolId).ToList();//one to many + it.Name = it.Name == null ? "null" : it.Name; + }).ToList();