static public void Delete(System.Int32 id, tgSqlAccessType sqlAccessType) { var obj = new TVShows(); obj.Id = id; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(sqlAccessType); }
static public void Delete(System.Int32 id) { var obj = new TVShows(); obj.Id = id; obj.AcceptChanges(); obj.MarkAsDeleted(); obj.Save(); }