ADO.NET Entity Framework v2 : ExecuteStoreQuery

ADO.NET Entity Framework v2 : ExecuteStoreQuery

  • Comments 2

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

 

Leave a Comment
  • Please add 8 and 2 and type the answer here:
  • Post
Page 1 of 1 (2 items)