You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
schotime edited this page Apr 23, 2013
·
6 revisions
Sometimes, you don't know the columns that will be returned from a query. This is where being able to map to a Dictionary<string,object>, or object[] comes in handy.
varusers=db.Fetch<Dictionary<string,object>>("select * from users");
or
varusers=db.Fetch<object[]>("select * from users");
Note: From NPoco version > 1.0.3, all array types (value types eg. string[], int[], double[], DateTime[] etc) will be a valid generic parameter.