Soft delete with Entity Framework
In many of the applications we build, our users can delete items that are no longer needed. That's great because it gives them lots of autonomy. But sometimes the users aren't thinking hard enough (are they even thinking at all?) before deleting something they think they no longer needed. In that case they contact you and give you some weird reason why they deleted it and then the'll ask you to restore it. That's why I tend to always implement soft delete in my applications. In this post I'll show you how to implement Soft Delete without adding any complexity…