EF6 Update and Delete reusable code RRS feed

  • Question

  • hi, 

    Is it  possible to use on single code for update on any entity? similarly for delete. If yes can some one share the document link.


    Prachin Soparkar

    Thursday, April 16, 2015 2:00 PM


  • You could implement a generic class that handles the CRUD (Create, Read, Update and Delete) operations for all of your entities. Please refer to my blog post for more information and some sample code: The post is written for Entity Framework 5 but the concepts are the same for Entity Framework 6 and the code will also work for EF6.

    Hope that helps.

    Please remember to close your threads by marking helpful posts as answer and then start a new thread if you have a new question.

    Thursday, April 16, 2015 3:02 PM