internal void LoadListItem <TEntity>(int fieldLookupValue, EntityListItemsCollection <TEntity> entityListItemsCollection) where TEntity : class, ITrackEntityState, ITrackOriginalValues, INotifyPropertyChanged, INotifyPropertyChanging, new() { ListItemCollection m_ListItemCollection = GetListItemCollection(entityListItemsCollection.MyList, CommonDefinition.GetCAMLSelectedID(fieldLookupValue, CommonDefinition.FieldID, CommonDefinition.CAMLTypeNumber)); foreach (ListItem _listItemx in m_ListItemCollection) { entityListItemsCollection.Add(_listItemx); } }
private void Add(TEntity entity) { m_AllItemsCollection.Add(entity); m_LocalItemsCollection.Add(entity); }