Removing Entry from a Database using Entity Framework

Hmm... Most of the tutorials on the internet seem to focus on how to remove these objects from DataContext as oppose to DbContent. In a Code First approach I don't really use DataContext, so I had to remove the object via DbContext and this is how it's done:

Seems to be pretty simple...

Leave Comment

Your email address will not be published.

Please type the characters of this captcha image in the input box

Please type the characters of this captcha image in the input box