func (etu *EquipmentTypeUpdate) Save(ctx context.Context) (int, error) {
	if etu.update_time == nil {
		v := equipmenttype.UpdateDefaultUpdateTime()
		etu.update_time = &v
	}
	if len(etu.category) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return etu.sqlSave(ctx)
}
// Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows/vertices matched by this operation.
// Save executes the query and returns the number of rows / vertices matched by this operation .
func (etu *EquipmentTypeUpdate) Save(ctx context.Context) (int, error) {
	if etu.update_time == nil {
		v := equipmenttype.UpdateDefaultUpdateTime()
		etu.update_time = &v
	}
	if len(etu.category) > 1 {
		return 0, errors.New("ent: multiple assignments on a unique edge \"category\"")
	}
	return etu.sqlSave(ctx)
}
func ( etu * EquipmentTypeUpdate ) Save ( ctx context . Context ) ( int , error ) { if etu . update_time == nil { v := equipmenttype . UpdateDefaultUpdateTime ( ) etu . update_time = & v } if len ( etu . category ) > 1 { return 0 , errors . New ( " \" \" " ) } return etu . sqlSave ( ctx ) }
Save executes the query and returns the number of rows/vertices matched by this operation.
Save executes the query and returns the number of rows / vertices matched by this operation .