/// <summary> /// Fills the data set using the query specified in the facade. /// </summary> public static async Task FillDataSetAsync <TKey, TListDTO, TDetailDTO>(this ICrudFacade <TListDTO, TDetailDTO, TKey> facade, GridViewDataSet <TListDTO> dataSet) where TDetailDTO : IEntity <TKey> { using (facade.UnitOfWorkProvider.Create()) { var query = facade.QueryFactory(); await dataSet.LoadFromQueryAsync(query); } }