none
deleting nested lists in a list RRS feed

  • Question

  • Hi,

    I created a list using entity framework, this list contains other lists that  i added using Include method by E.F. .  I used that "Extra Lists" just for quering and now I don't need anymore.  how can I delete that lists and make this light  ? ;

    Thank you

    Alex    


    Alex

    Friday, July 6, 2012 10:47 AM

Answers

  • I'll do it creating a custom object and I'll populate it using Linq select new . 

    Alex

    • Marked as answer by Alex_Kk Wednesday, August 22, 2012 10:56 AM
    Wednesday, August 22, 2012 10:56 AM

All replies

  • Hi Alex_Kk,

    Welcome to MSDN Forum.

    Do you mean you have load the related entities into memory when query operation executed, and now you want to dispose the related entities?

    Best Regards


    Allen Li [MSFT]
    MSDN Community Support | Feedback to us

    Monday, July 9, 2012 3:10 AM
    Moderator
  • I'll do it creating a custom object and I'll populate it using Linq select new . 

    Alex

    • Marked as answer by Alex_Kk Wednesday, August 22, 2012 10:56 AM
    Wednesday, August 22, 2012 10:56 AM