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