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
please extend DbContext.Database.SqlQuery to support dynamic type for map query to a list of dynamic objects. for example:
var results = DbContext.Database.SqlQuery<dynamic>("SELECT * FROM Kids");
var id = result.First().Id;
var name = result.First().Name;
var age = result.First().Age ?? 0; // null support
foreach (var item in results)
{
Console.WriteLine("{0}:{1}", item.Name, item.Age);
}
nikitaignatov, djavier, lousaibiao, d0apga, 0xced and 20 more