I made a class from Linq to SQL Clasees with VS 2008 SP1 Framework 3.5 SP1, in this case I extended the partial
partial void UpdateMyTable(MyTable instance){ // Business logic // Validation rules, etc. }
My problem is when I execute db.SubmitChanges(), it executes UpdateMyTable and makes the validations but it doesn’t update, I get this error:
[Exception: Deliver] System.Data.Linq.ChangeProcessor.SendOnValidate(MetaType type, TrackedObject item, ChangeAction changeAction) +197 System.Data.Linq.ChangeProcessor.ValidateAll(IEnumerable`1 list) +255 System.Data.Linq.ChangeProcessor.SubmitChanges(ConflictMode failureMode) +76 System.Data.Linq.DataContext.SubmitChanges(ConflictMode failureMode) +331 System.Data.Linq.DataContext.SubmitChanges() +19
http://msdn.microsoft.com/en-us/library/bb882671.aspx
Try MiTabla.OnValidate