コード例 #1
0
        private void GetDialPlanProviders(int offset, int count)
        {
            if (!m_providersPanelRefreshInProgress)
            {
                m_providersPanelRefreshInProgress = true;

                m_riaContext.SIPDialplanProviders.Clear();

                var providersQuery = m_riaContext.GetSIPDialplanProvidersQuery().Where(x => x.DialPlanID == m_dialPlan.ID).OrderBy(x => x.ProviderName).Skip(offset).Take(count);
                providersQuery.IncludeTotalCount = true;
                m_riaContext.Load <SIPDialplanProvider>(providersQuery, LoadBehavior.RefreshCurrent, DialPlanProvidersLoaded, null);
            }
        }