예제 #1
0
        internal override object Read(IDataReader dataReader)
        {
            StormDataSet sr = new StormDataSet(this.rootEntity);

            sr.ReadData(dataReader, this.selectFields);
            return(sr);
        }
예제 #2
0
파일: GetCommand.cs 프로젝트: fedtes/storm
        internal override object Read(IDataReader dataReader)
        {
            StormDataSet sr = new StormDataSet(this.rootEntity);

            var metadata = this.requests
                           .SelectMany(r => {
                return(r.Entity.entityFields
                       .Select(f => {
                    return new SelectNode()
                    {
                        FromNode = r,
                        EntityField = f,
                        FullPath = new FieldPath(r.FullPath.Root, r.FullPath.Path, f.CodeName),
                    };
                }));
            });

            sr.ReadData(dataReader, metadata);

            return(GetCommandHelpers.ToResults(sr, this.navigator, requests, from));
        }