From 8e58811d951def475bd99f5a9f0af7fa5e8b8e09 Mon Sep 17 00:00:00 2001 From: "deepsource-autofix[bot]" <62050782+deepsource-autofix[bot]@users.noreply.github.com> Date: Mon, 20 Mar 2023 21:13:25 +0000 Subject: [PATCH] style: Format code with dotnet-format Format code with dotnet-format This commit fixes the style issues introduced in 06fca54 according to the output from dotnet-format. Details: https://deepsource.io/gh/ademclk/ceyehat-api/transform/6e5160b1-780b-4f2e-9dce-5f00fcb044a9/ --- .../Persistence/Configurations/FlightConfigurations.cs | 6 +++--- .../Persistence/Repositories/FlightRepository.cs | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs b/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs index 12f70f8..2d69ba6 100644 --- a/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs +++ b/Ceyehat.Infrastructure/Persistence/Configurations/FlightConfigurations.cs @@ -75,18 +75,18 @@ private void ConfigureFlightsTable(EntityTypeBuilder builder) .HasConversion( f => f.Value, value => PriceId.Create(value)); - + builder.Property(f => f.ComfortPriceId) .ValueGeneratedNever() .HasConversion( f => f.Value, value => PriceId.Create(value)); - + builder.Property(f => f.BusinessPriceId) .ValueGeneratedNever() .HasConversion( f => f.Value, value => PriceId.Create(value)); - + } } \ No newline at end of file diff --git a/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs b/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs index e3e9eca..0e8fffc 100644 --- a/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs +++ b/Ceyehat.Infrastructure/Persistence/Repositories/FlightRepository.cs @@ -33,7 +33,7 @@ join comPrice in _dbContext.Prices on flight.ComfortPriceId equals comPrice.Id join busPrice in _dbContext.Prices on flight.BusinessPriceId equals busPrice.Id join dAirport in _dbContext.Airports on flight.DepartureAirportId equals dAirport.Id join aAirport in _dbContext.Airports on flight.ArrivalAirportId equals aAirport.Id - + where dAirport.IataCode == departureAirportIataCode && aAirport.IataCode == arrivalAirportIataCode && flight.ScheduledDeparture.Year == departureDate.Value.Year