public object Initialize()
        {
            var collectionContent = _queryGenerator.GetQuery(_versionsReader, _primaryKey, Revision, _removed).List();
            var collection        = InitializeCollection(collectionContent.Count);

            foreach (var collectionRow in collectionContent)
            {
                AddToCollection(collection, collectionRow);
            }
            return(collection);
        }
Exemple #2
0
        public T Initialize()
        {
            IList <object> collectionContent = queryGenerator.GetQuery(versionsReader, primaryKey, revision).List <object>();

            T collection = InitializeCollection(collectionContent.Count);

            foreach (Object collectionRow in collectionContent)
            {
                AddToCollection(collection, collectionRow);
            }

            return(collection);
        }