using index int in LINQ to Entities RRS feed

  • Question

  • Hi,

    is it possible to at an index hint to a Entity Framewirk-Query?

    Thursday, July 8, 2010 9:40 AM


  • Hi,

    I don't think it's possible.  The data records in the database do not have the index property because they are not ordered.   Can you make the query into IEnumerable<> one and use LINQ to Objects instead? 

    Lingzhi Sun

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.
    Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.
    Tuesday, July 13, 2010 9:38 AM