I am doing a CRUD operation on Database generated class(using LINQ2SQL) in my WPF application. All of my DB tables have IsDelete property exists. So I want to define an abstract/interface class to do the SoftDelete(). My question here is, how can I define my Generic class in such a way as to access T.IsDelete = true ? or in code I want to do something like below
public abstract class CRUDOperations <T> : where T is????
{
.......
protected virtual SoftDelete()
{
T.IsDeleted = true;
}
}
Where T is DB generated Table classes by LINQ To SQL (DBML), which I cant impose an Interface or base class on top of it?. Or is there a technique in DB to have a base table which has the same Base/Derive concepts of C#