/// <summary> /// Set tracking state to Unchanged on an entity and its child collections. /// </summary> /// <param name="item">Trackable object</param> public static void AcceptChanges(this ITrackable item) { // Recursively set tracking state for child collections item.AcceptChanges(null); }