Wriju's BLOG

.NET, Cloud and everything

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!!!