Пример #1
0
        internal Dictionary <int, Object> GetListItemCollection <TEntity>(AssociationAttribute associationInfo, int m_Id)
            where TEntity : class, ITrackEntityState, ITrackOriginalValues, INotifyPropertyChanged, INotifyPropertyChanging, new()
        {
            IEntityListItemsCollection _newList = GetOrCreateListEntry <TEntity>(associationInfo.List);

            return(_newList.GetEntitiesForReverseLookup(associationInfo.Name, m_Id));
        }
Пример #2
0
        internal int GetIndex <TEntity>(AssociationAttribute associations, TEntity item)
            where TEntity : class, ITrackEntityState, ITrackOriginalValues, INotifyPropertyChanged, INotifyPropertyChanging, new()
        {
            IEntityListItemsCollection _newList = GetOrCreateListEntry <TEntity>(associations.List);

            return(_newList.GetIndex(item));
        }
Пример #3
0
 void IEntitySet.LoadValues(DataContext dataContext, AssociationAttribute association, int id)
 {
     m_AssociationInfo = association;
     m_Id          = id;
     m_DataContext = dataContext;
     if (!m_DataContext.DeferredLoadingEnabled)
     {
         _LoadValues();
     }
 }