dnnsoftware/Dnn.Platform — pull request #113 by weggetor (2014-06-10 10:44:23+00:00)
Title: DNN-5455 Extension method for binding PetaPoco dynamic result set 

PetaPoco is mostly used together with strong typed Info-classes. Thats nice and working well but sometimes we need a more flexible way to retrieve data. Think of a simple module where the user enters an arbitrary select statement to any table of the database (yes, I wont do that! Its just for explanation!). With PetaPoco this could be done with ExecuteQuery and the result is of type IEnumerable. This is nice and working "out of the box". But you can not databind this IEnumerable to a datagrid : even if the data is retrieved correctly, nothing is shown in the grid. So I implemented an extension method for IEnumerable named "ToDataTable"