func (pr *Property) FromRows(rows *sql.Rows) error {
	var scanpr struct {
		ID           int
		CreateTime   sql.NullTime
		UpdateTime   sql.NullTime
		IntVal       sql.NullInt64
		BoolVal      sql.NullBool
		FloatVal     sql.NullFloat64
		LatitudeVal  sql.NullFloat64
		LongitudeVal sql.NullFloat64
		RangeFromVal sql.NullFloat64
		RangeToVal   sql.NullFloat64
		StringVal    sql.NullString
	}
	// the order here should be the same as in the `property.Columns`.
	if err := rows.Scan(
		&scanpr.ID,
		&scanpr.CreateTime,
		&scanpr.UpdateTime,
		&scanpr.IntVal,
		&scanpr.BoolVal,
		&scanpr.FloatVal,
		&scanpr.LatitudeVal,
		&scanpr.LongitudeVal,
		&scanpr.RangeFromVal,
		&scanpr.RangeToVal,
		&scanpr.StringVal,
	); err != nil {
		return err
	}
	pr.ID = strconv.Itoa(scanpr.ID)
	pr.CreateTime = scanpr.CreateTime.Time
	pr.UpdateTime = scanpr.UpdateTime.Time
	pr.IntVal = int(scanpr.IntVal.Int64)
	pr.BoolVal = scanpr.BoolVal.Bool
	pr.FloatVal = scanpr.FloatVal.Float64
	pr.LatitudeVal = scanpr.LatitudeVal.Float64
	pr.LongitudeVal = scanpr.LongitudeVal.Float64
	pr.RangeFromVal = scanpr.RangeFromVal.Float64
	pr.RangeToVal = scanpr.RangeToVal.Float64
	pr.StringVal = scanpr.StringVal.String
	return nil
}
// FromRows scans the sql response data into Property.
FromRows scans the sql response data into Property.
// FromRows scans the sql response data into Property .
func (pr *Property) FromRows(rows *sql.Rows) error {
	var scanpr struct {
		ID           int
		CreateTime   sql.NullTime
		UpdateTime   sql.NullTime
		IntVal       sql.NullInt64
		BoolVal      sql.NullBool
		FloatVal     sql.NullFloat64
		LatitudeVal  sql.NullFloat64
		LongitudeVal sql.NullFloat64
		RangeFromVal sql.NullFloat64
		RangeToVal   sql.NullFloat64
		StringVal    sql.NullString
	}
	if err := rows.Scan(
		&scanpr.ID,
		&scanpr.CreateTime,
		&scanpr.UpdateTime,
		&scanpr.IntVal,
		&scanpr.BoolVal,
		&scanpr.FloatVal,
		&scanpr.LatitudeVal,
		&scanpr.LongitudeVal,
		&scanpr.RangeFromVal,
		&scanpr.RangeToVal,
		&scanpr.StringVal,
	); err != nil {
		return err
	}
	pr.ID = strconv.Itoa(scanpr.ID)
	pr.CreateTime = scanpr.CreateTime.Time
	pr.UpdateTime = scanpr.UpdateTime.Time
	pr.IntVal = int(scanpr.IntVal.Int64)
	pr.BoolVal = scanpr.BoolVal.Bool
	pr.FloatVal = scanpr.FloatVal.Float64
	pr.LatitudeVal = scanpr.LatitudeVal.Float64
	pr.LongitudeVal = scanpr.LongitudeVal.Float64
	pr.RangeFromVal = scanpr.RangeFromVal.Float64
	pr.RangeToVal = scanpr.RangeToVal.Float64
	pr.StringVal = scanpr.StringVal.String
	return nil
}
func ( pr * Property ) FromRows ( rows * sql . Rows ) error { var scanpr struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime IntVal sql . NullInt64 BoolVal sql . NullBool FloatVal sql . NullFloat64 LatitudeVal sql . NullFloat64 LongitudeVal sql . NullFloat64 RangeFromVal sql . NullFloat64 RangeToVal sql . NullFloat64 StringVal sql . NullString } if err := rows . Scan ( & scanpr . ID , & scanpr . CreateTime , & scanpr . UpdateTime , & scanpr . IntVal , & scanpr . BoolVal , & scanpr . FloatVal , & scanpr . LatitudeVal , & scanpr . LongitudeVal , & scanpr . RangeFromVal , & scanpr . RangeToVal , & scanpr . StringVal , ) ; err != nil { return err } pr . ID = strconv . Itoa ( scanpr . ID ) pr . CreateTime = scanpr . CreateTime . Time pr . UpdateTime = scanpr . UpdateTime . Time pr . IntVal = int ( scanpr . IntVal . Int64 ) pr . BoolVal = scanpr . BoolVal . Bool pr . FloatVal = scanpr . FloatVal . Float64 pr . LatitudeVal = scanpr . LatitudeVal . Float64 pr . LongitudeVal = scanpr . LongitudeVal . Float64 pr . RangeFromVal = scanpr . RangeFromVal . Float64 pr . RangeToVal = scanpr . RangeToVal . Float64 pr . StringVal = scanpr . StringVal . String return nil }
FromRows scans the sql response data into Property.
FromRows scans the sql response data into Property .
// the order here should be the same as in the `property.Columns`.