// Exec executes the deletion query.
Exec executes the deletion query.
// Exec executes the deletion query .
func (epdo *EquipmentPortDeleteOne) Exec(ctx context.Context) error {
	n, err := epdo.epd.Exec(ctx)
	switch {
	case err != nil:
		return err
	case n == 0:
		return &ErrNotFound{equipmentport.Label}
	default:
		return nil
	}
}
func ( epdo * EquipmentPortDeleteOne ) Exec ( ctx context . Context ) error { n , err := epdo . epd . Exec ( ctx ) switch { case err != nil : return err case n == 0 : return & ErrNotFound { equipmentport . Label } default : return nil } }
Exec executes the deletion query.
Exec executes the deletion query .