Skip to content

Commit

Permalink
Merge pull request #90 from ademclk/deepsource-transform-2cba79dc
Browse files Browse the repository at this point in the history
Format code with dotnet-format
  • Loading branch information
ademclk authored Mar 20, 2023
2 parents 06fca54 + 8e58811 commit 8b1e66e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,18 +75,18 @@ private void ConfigureFlightsTable(EntityTypeBuilder<Flight> 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));

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b1e66e

Please sign in to comment.