예제 #1
0
            void Prepare()
            {
                Type type = typeof(T);

                if (type != UtilConstants.TypeOfObject && MappingTypeSystem.IsMappingType(type))
                {
                    MappingField mf = new MappingField(type, 0);
                    this._objectActivator = mf.CreateObjectActivator();
                    this._reader          = this.ExecuteReader();
                    return;
                }

                this._reader          = this.ExecuteReader();
                this._objectActivator = GetObjectActivator(type, this._reader);
            }
예제 #2
0
            void Prepare()
            {
                Type type = typeof(T);

                if (Utils.IsMapType(type))
                {
                    MappingField mf = new MappingField(type, 0);
                    this._objectActivator = mf.CreateObjectActivator();
                    this._reader          = this.ExecuteReader();
                    return;
                }

                this._reader          = this.ExecuteReader();
                this._objectActivator = GetObjectActivator(type, this._reader);
            }
예제 #3
0
            void Prepare()
            {
                Type type = typeof(T);

                if (Utils.IsMapType(type))
                {
                    MappingField mf = new MappingField(type, 0);
                    this._objectActivator = mf.CreateObjectActivator();
                    this._reader          = this._internalSqlQuery._dbContext.InnerDbSession.ExecuteReader(this._internalSqlQuery._sql, this._internalSqlQuery._parameters, CommandBehavior.Default, CommandType.Text);
                    return;
                }

                this._reader          = this._internalSqlQuery._dbContext.InnerDbSession.ExecuteReader(this._internalSqlQuery._sql, this._internalSqlQuery._parameters, CommandBehavior.Default, CommandType.Text);
                this._objectActivator = GetObjectActivator(type, this._reader);
            }