func (fu *FileUpdate) Save(ctx context.Context) (int, error) {
	if fu.update_time == nil {
		v := file.UpdateDefaultUpdateTime()
		fu.update_time = &v
	}
	if fu.size != nil {
		if err := file.SizeValidator(*fu.size); err != nil {
			return 0, fmt.Errorf("ent: validator failed for field \"size\": %v", err)
		}
	}
	return fu.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 (fu *FileUpdate) Save(ctx context.Context) (int, error) {
	if fu.update_time == nil {
		v := file.UpdateDefaultUpdateTime()
		fu.update_time = &v
	}
	if fu.size != nil {
		if err := file.SizeValidator(*fu.size); err != nil {
			return 0, fmt.Errorf("ent: validator failed for field \"size\": %v", err)
		}
	}
	return fu.sqlSave(ctx)
}
func ( fu * FileUpdate ) Save ( ctx context . Context ) ( int , error ) { if fu . update_time == nil { v := file . UpdateDefaultUpdateTime ( ) fu . update_time = & v } if fu . size != nil { if err := file . SizeValidator ( * fu . size ) ; err != nil { return 0 , fmt . Errorf ( " \" \" " , err ) } } return fu . 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 .