*Nevermind*
One way, a total hack is to do
partial class DbDataContext
{
public bool IsDirty { get; set; }
partial void OnCreated()
{
Application.Idle += (sender, e) =>
{
ChangeSet set = GetChangeSet();
IsDirty = set.Inserts.Count > 0 || set.Updates.Count > 0
|| set.Deletes.Count > 0;
};
}
}
And of course also update the Save button on
Application.Idle
.