Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SEP-2024-team-D
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Nahodil, Petr
SEP-2024-team-D
Commits
5ffde39e
Commit
5ffde39e
authored
2 months ago
by
jenda
Browse files
Options
Downloads
Patches
Plain Diff
Fix fucking planes
parent
2cda306a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
FlightLogNet/Repositories/AirplaneRepository.cs
+1
-1
1 addition, 1 deletion
FlightLogNet/Repositories/AirplaneRepository.cs
FlightLogNet/TestDatabaseGenerator.cs
+2
-2
2 additions, 2 deletions
FlightLogNet/TestDatabaseGenerator.cs
with
3 additions
and
3 deletions
FlightLogNet/Repositories/AirplaneRepository.cs
+
1
−
1
View file @
5ffde39e
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
{
{
using
var
dbContext
=
new
LocalDatabaseContext
(
configuration
);
using
var
dbContext
=
new
LocalDatabaseContext
(
configuration
);
var
firstAirplane
=
dbContext
.
Airplanes
.
FirstOrDefault
(
airplane
=>
airplane
.
Id
==
airplaneModel
.
Id
);
var
firstAirplane
=
dbContext
.
Club
Airplanes
.
FirstOrDefault
(
airplane
=>
airplane
.
Id
==
airplaneModel
.
Id
);
if
(
firstAirplane
!=
null
)
if
(
firstAirplane
!=
null
)
{
{
airplaneId
=
firstAirplane
.
Id
;
airplaneId
=
firstAirplane
.
Id
;
...
...
This diff is collapsed.
Click to expand it.
FlightLogNet/TestDatabaseGenerator.cs
+
2
−
2
View file @
5ffde39e
...
@@ -186,13 +186,13 @@
...
@@ -186,13 +186,13 @@
dbContext
.
ClubAirplanes
.
AddRange
(
dbContext
.
ClubAirplanes
.
AddRange
(
new
ClubAirplane
new
ClubAirplane
{
{
Id
=
2
,
Id
=
1
,
Immatriculation
=
"OK-B123"
,
Immatriculation
=
"OK-B123"
,
AirplaneType
=
new
AirplaneType
{
Type
=
"L-13A Blaník"
}
AirplaneType
=
new
AirplaneType
{
Type
=
"L-13A Blaník"
}
},
},
new
ClubAirplane
new
ClubAirplane
{
{
Id
=
1
,
Id
=
2
,
Immatriculation
=
"OK-V23424"
,
Immatriculation
=
"OK-V23424"
,
AirplaneType
=
new
AirplaneType
{
Type
=
"Zlín Z-42M"
}
AirplaneType
=
new
AirplaneType
{
Type
=
"Zlín Z-42M"
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment