whats the shortest way of returning an Entity Framework object from one table based on it's name att

Posted by Greg on Stack Overflow See other posts from Stack Overflow or by Greg
Published on 2010-05-30T04:31:37Z Indexed on 2010/05/30 4:42 UTC
Read the original article Hit count: 383

Hi,

whats the shortest way of returning an Entity Framework object from one table based on it's name attribute?

So say one had a table person, with column name, what would be the quickest way to return the person object with name = "Tim" say?

e.g. context.People.Select(m => m.Name == "Tim") doesn't seem to work?

© Stack Overflow or respective owner

Related posts about c#

Related posts about entity-framework