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)); }
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)); }
void IEntitySet.LoadValues(DataContext dataContext, AssociationAttribute association, int id) { m_AssociationInfo = association; m_Id = id; m_DataContext = dataContext; if (!m_DataContext.DeferredLoadingEnabled) { _LoadValues(); } }