AddRange RemoveRange Methods Missing RRS feed

  • Question

  • User1928065626 posted


    I created a project in Visual Studio 2012 and installed EF 6.1.3 in it.  I'm trying to use the AddRange() and RemoveRange() methods of the DbSet class but it appears they are missing.

    I have already added System.Data.Entity reference in my code.  Am I missing some other references?

    Saturday, December 31, 2016 2:36 AM

All replies

  • User-746821919 posted

    AddRange and RemoveRange are methods of System.Collections.Generic class.  So, try add "using System.Collections.Generic".

    Saturday, December 31, 2016 6:41 AM
  • User1928065626 posted

    Hi, thanks for replying. The AddRange and RemoveRange methods in my case are methods of the DbSet class, and System.Collections.Generic is already referenced in my code.

    Saturday, December 31, 2016 6:50 AM
  • User-271186128 posted

    Hi madjester,

    AddRange RemoveRange Methods Missing

    Based on your description, I test it on my side, it seems that everything works well.

    I suggest you could try to reinstall the EF reference using "Manage NuGet Packages" option.

    Best regards,

    Saturday, January 7, 2017 9:01 AM