func (fp *FloorPlan) FromRows(rows *sql.Rows) error {
	var scanfp struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		Name       sql.NullString
	}
	// the order here should be the same as in the `floorplan.Columns`.
	if err := rows.Scan(
		&scanfp.ID,
		&scanfp.CreateTime,
		&scanfp.UpdateTime,
		&scanfp.Name,
	); err != nil {
		return err
	}
	fp.ID = strconv.Itoa(scanfp.ID)
	fp.CreateTime = scanfp.CreateTime.Time
	fp.UpdateTime = scanfp.UpdateTime.Time
	fp.Name = scanfp.Name.String
	return nil
}
// FromRows scans the sql response data into FloorPlan.
FromRows scans the sql response data into FloorPlan.
// FromRows scans the sql response data into FloorPlan .
func (fp *FloorPlan) FromRows(rows *sql.Rows) error {
	var scanfp struct {
		ID         int
		CreateTime sql.NullTime
		UpdateTime sql.NullTime
		Name       sql.NullString
	}
	if err := rows.Scan(
		&scanfp.ID,
		&scanfp.CreateTime,
		&scanfp.UpdateTime,
		&scanfp.Name,
	); err != nil {
		return err
	}
	fp.ID = strconv.Itoa(scanfp.ID)
	fp.CreateTime = scanfp.CreateTime.Time
	fp.UpdateTime = scanfp.UpdateTime.Time
	fp.Name = scanfp.Name.String
	return nil
}
func ( fp * FloorPlan ) FromRows ( rows * sql . Rows ) error { var scanfp struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime Name sql . NullString } if err := rows . Scan ( & scanfp . ID , & scanfp . CreateTime , & scanfp . UpdateTime , & scanfp . Name , ) ; err != nil { return err } fp . ID = strconv . Itoa ( scanfp . ID ) fp . CreateTime = scanfp . CreateTime . Time fp . UpdateTime = scanfp . UpdateTime . Time fp . Name = scanfp . Name . String return nil }
FromRows scans the sql response data into FloorPlan.
FromRows scans the sql response data into FloorPlan .
// the order here should be the same as in the `floorplan.Columns`.