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); }
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); }
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); }