func (epd *EquipmentPortDefinition) FromRows(rows *sql.Rows) error {
	var scanepd struct {
		ID              int
		CreateTime      sql.NullTime
		UpdateTime      sql.NullTime
		Name            sql.NullString
		Type            sql.NullString
		Index           sql.NullInt64
		Bandwidth       sql.NullString
		VisibilityLabel sql.NullString
	}
	// the order here should be the same as in the `equipmentportdefinition.Columns`.
	if err := rows.Scan(
		&scanepd.ID,
		&scanepd.CreateTime,
		&scanepd.UpdateTime,
		&scanepd.Name,
		&scanepd.Type,
		&scanepd.Index,
		&scanepd.Bandwidth,
		&scanepd.VisibilityLabel,
	); err != nil {
		return err
	}
	epd.ID = strconv.Itoa(scanepd.ID)
	epd.CreateTime = scanepd.CreateTime.Time
	epd.UpdateTime = scanepd.UpdateTime.Time
	epd.Name = scanepd.Name.String
	epd.Type = scanepd.Type.String
	epd.Index = int(scanepd.Index.Int64)
	epd.Bandwidth = scanepd.Bandwidth.String
	epd.VisibilityLabel = scanepd.VisibilityLabel.String
	return nil
}
// FromRows scans the sql response data into EquipmentPortDefinition.
FromRows scans the sql response data into EquipmentPortDefinition.
// FromRows scans the sql response data into EquipmentPortDefinition .
func (epd *EquipmentPortDefinition) FromRows(rows *sql.Rows) error {
	var scanepd struct {
		ID              int
		CreateTime      sql.NullTime
		UpdateTime      sql.NullTime
		Name            sql.NullString
		Type            sql.NullString
		Index           sql.NullInt64
		Bandwidth       sql.NullString
		VisibilityLabel sql.NullString
	}
	if err := rows.Scan(
		&scanepd.ID,
		&scanepd.CreateTime,
		&scanepd.UpdateTime,
		&scanepd.Name,
		&scanepd.Type,
		&scanepd.Index,
		&scanepd.Bandwidth,
		&scanepd.VisibilityLabel,
	); err != nil {
		return err
	}
	epd.ID = strconv.Itoa(scanepd.ID)
	epd.CreateTime = scanepd.CreateTime.Time
	epd.UpdateTime = scanepd.UpdateTime.Time
	epd.Name = scanepd.Name.String
	epd.Type = scanepd.Type.String
	epd.Index = int(scanepd.Index.Int64)
	epd.Bandwidth = scanepd.Bandwidth.String
	epd.VisibilityLabel = scanepd.VisibilityLabel.String
	return nil
}
func ( epd * EquipmentPortDefinition ) FromRows ( rows * sql . Rows ) error { var scanepd struct { ID int CreateTime sql . NullTime UpdateTime sql . NullTime Name sql . NullString Type sql . NullString Index sql . NullInt64 Bandwidth sql . NullString VisibilityLabel sql . NullString } if err := rows . Scan ( & scanepd . ID , & scanepd . CreateTime , & scanepd . UpdateTime , & scanepd . Name , & scanepd . Type , & scanepd . Index , & scanepd . Bandwidth , & scanepd . VisibilityLabel , ) ; err != nil { return err } epd . ID = strconv . Itoa ( scanepd . ID ) epd . CreateTime = scanepd . CreateTime . Time epd . UpdateTime = scanepd . UpdateTime . Time epd . Name = scanepd . Name . String epd . Type = scanepd . Type . String epd . Index = int ( scanepd . Index . Int64 ) epd . Bandwidth = scanepd . Bandwidth . String epd . VisibilityLabel = scanepd . VisibilityLabel . String return nil }
FromRows scans the sql response data into EquipmentPortDefinition.
FromRows scans the sql response data into EquipmentPortDefinition .
// the order here should be the same as in the `equipmentportdefinition.Columns`.