ADO.NET Entity Framework v2 : ExecuteStoreQuery
There is now an option in ADO.Net Entity Framework v2 for us to execute store query,
IEnumerable<Customer> custs = ctx.ExecuteStoreQuery<Customer>("SELECT * FROM Customers", null);
foreach (var c in custs)
{
Console.WriteLine(c.CustomerID);
}
Namoskar!!!
Comments
Anonymous
May 29, 2009
PingBack from http://microsoft-sharepoint.simplynetdev.com/adonet-entity-framework-v2-executestorequery/Anonymous
July 30, 2010
its better to explain why we need to use executeStoreQuery instead of context.CreateQuery