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