Exemple #1
0
        protected void InitialLoad(IEnumerable <CollectionItem <TEntity> > items)
        {
            if (IsLoaded)
            {
                return;
            }

            ObservableList <TEntity> tmp = new ObservableList <TEntity>(items);

            tmp.BeforeCollectionChanged += BeforeCollectionChanged;
            innerData  = tmp;
            loadedData = tmp;

            IsLoaded = true;
            if (Parent is OGMImpl || (Parent is DynamicEntity && ((DynamicEntity)Parent).ShouldExecute))
            {
                DbTransaction?.Replay(this);
            }
        }