I have a project , I used Coefirst .
In my project I Want Implement SoftDelete
there is two way .
1st: User an Interface Like belowe :
public interface ISoftDelete
{
bool IsDeleted { get; set; }
}
If I use this way , I should Implement all classes that I want softDelete.
2nd : use An Abstract Class Like belowe :
public abstract class SoftDelete
{
public bool IsDelelted { get; set; }
}
I dont know which one is better and there is no similar question on the Net.