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