protected virtual void ClearNavigationProperties() { Meetings.Clear(); MeetingAttendies.Clear(); MeetingCategory.Clear(); UserID_ManagerID.Clear(); UserID_TeamMemberID.Clear(); Tenant = null; Tasks.Clear(); }
protected virtual void ClearNavigationProperties() { Users.Clear(); Tasks.Clear(); Notifications.Clear(); Alerts.Clear(); attachments.Clear(); ManagerTeamMemberRelations.Clear(); MeetingAttendies.Clear(); MeetingCategory.Clear(); MeetingCategoryMap.Clear(); Meetings.Clear(); MeetingTasks.Clear(); projects.Clear(); }
private void FixupMeetings(Meetings previousValue, bool skipKeys = false) { if (IsDeserializing) { return; } if (previousValue != null && previousValue.MeetingCategoryMap.Contains(this)) { previousValue.MeetingCategoryMap.Remove(this); } if (Meetings != null) { if (!Meetings.MeetingCategoryMap.Contains(this)) { Meetings.MeetingCategoryMap.Add(this); } MeetingID = Meetings.ID; } else if (!skipKeys) { MeetingID = null; } if (ChangeTracker.ChangeTrackingEnabled) { if (ChangeTracker.OriginalValues.ContainsKey("Meetings") && (ChangeTracker.OriginalValues["Meetings"] == Meetings)) { ChangeTracker.OriginalValues.Remove("Meetings"); } else { ChangeTracker.RecordOriginalValue("Meetings", previousValue); } if (Meetings != null && !Meetings.ChangeTracker.ChangeTrackingEnabled) { Meetings.StartTracking(); } } }