EFDAL: Select by Primary Key?

Apr 13, 2011 at 6:15 PM

Does the roadmap include adding select by primary key functionality to EFDAL? Or is it there already and I'm just not seeing it?

- Mark

Apr 13, 2011 at 6:22 PM

That specific function is not there but you can do this.

var item = context.Customer.FirstOrDefault(x=>x.CustomerId == 9)

Of course you have to know which column is the primary key. We will see about adding this but EF does give you a lot more LINQ support for quering.