partial void OnValidate(System.Data.Linq.ChangeAction action) { //existing if (Id > 1) SetModified(); else//new SetCreated(); SetModified(); }