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();