var students = db.Queryable<CMStudent>().ToList(); if (students != null) { foreach (var item in students) { Console.WriteLine(item.SchoolName); Console.WriteLine(item.SchoolSingle.Name); Console.WriteLine(item.SchoolList.Count); } }
Ô´ÂëÏÂÔØ£º
https://github.com/sunkaixuan/SqlSugar
¡¡