예제 #1
0
 public static async Task <List <SectionDto> > GetAllSectionDtosAsync()
 {
     using (var adapter = new DataAccessAdapter())
     {
         var q = new LinqMetaData(adapter).Section.OrderBy(s => s.OrderNo).ProjectToSectionDto();
         return(await q.ToListAsync().ConfigureAwait(false));
     }
 }