Example #1
0
        public IEnumerable <TParent> Select()
        {
            string statement = string.Empty;
            IDictionary <string, object> parameters = new Dictionary <string, object>();

            _definition.Parse(out statement, out parameters);

            var listingAction = new ToListAction <TParent>(MetaDataStore,
                                                           this._hydrator, this._connection, _dialect, _environment);

            var entities = listingAction.GetListing(statement, parameters);

            return(entities);
        }
Example #2
0
        public IEnumerable <TEntity> Select()
        {
            var statement = string.Empty;
            IDictionary <string, object> parameters = null;

            _queryDefinition.Parse(out statement, out parameters);

            var listingAction = new ToListAction <TEntity>(_metadatastore,
                                                           this._hydrator, this._connection, _dialect, _environment);

            var entities = listingAction.GetListing(statement, parameters);

            return(entities);
        }