void defaultActions_CollectionChanged(object sender, NotifyCollectionChangedEventArgs e) { if (base.Actions.Count() > UsePagedCollectionSizeThreshold) { m_usePagedActions = true; SavePartialChangeGroup(); if (m_actions == null) { // The provider assumes that the SqlChangeGroup is persisted to the data store SqlChangeGroupProvider provider = new SqlChangeGroupProvider(m_runTimeChangeGroup, (SqlChangeGroupManager)Manager); m_actions = new PagedCollection <IMigrationAction>(provider, m_sqlChangeActionPageSize, m_sqlChangeActionTimeToLive); } foreach (var action in base.Actions) { m_actions.Add(action); } base.Actions.Clear(); } }
public PagedCollectionEnum(PagedCollection <T> items) { m_items = items; }