locked
how to query the entity framework RRS feed

  • Question

  • I have been looking for and example of how to return search results from the entity framework...

    What I want to do is something like this (though this does not compile!)

    // get full list
    var y = _entity.ClientIssue.Select();
    
    //apply any search criteria
    if (!string.IsNullOrEmpty(searchID))
        y = y.Where(p => p.ClientIssueReferenceCode.Contains(searchID));
    
    //apply any search criteria
    if (!string.IsNullOrEmpty(searchTitle))
        y = y.Where(p => p.Title.Contains(searchTitle));
    
    return y.ToList();
    Monday, July 20, 2009 10:04 PM

Answers

  • You may want to post EF questions here:

    http://social.msdn.microsoft.com/Forums/en-US/adodotnetentityframework/threads

    Hope this helps.


    www.insteptech.com ; msmvps.com/blogs/deborahk
    We are volunteers and ask only that if we are able to help you, that you mark our reply as your answer. THANKS!
    • Marked as answer by Figo Fei Wednesday, July 22, 2009 8:09 AM
    Tuesday, July 21, 2009 4:41 PM

All replies