private void OnConstraintCollectionChanged (object sender, CollectionChangeEventArgs args)
{
// The Sort variable is set to the UniqueConstraint column.
// if ApplyDefault Sort is true and Sort is null or is not set Explicitly
// FIXME: The interal cache may change as result of change in Constraint collection
// one such scenerio is taken care.
// There may be more. I dont know what else can be done.
/* useDefaultSort is set to false when Sort is set explicitly */
if (args.Action == CollectionChangeAction.Add && args.Element is UniqueConstraint) {
if (ApplyDefaultSort && useDefaultSort)
PopulateDefaultSort ((UniqueConstraint) args.Element);
}
// UpdateIndex() is not invoked here.
}