Skip to content

Commit 654d890

Browse files
committed
refactor: change lambda expression parameter name
1 parent 469f93c commit 654d890

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Application/AppDbContext.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,26 @@ protected override void OnModelCreating(ModelBuilder modelBuilder)
2525

2626
modelBuilder
2727
.Entity<WorkEntry>()
28-
.Property(p => p.Duration)
28+
.Property(entry => entry.Duration)
2929
.HasComputedColumnSql("end_time - start_time", stored: true);
3030

3131
modelBuilder
3232
.Entity<WorkEntry>()
33-
.Property(p => p.StartTime)
33+
.Property(entry => entry.StartTime)
3434
.HasColumnType("timestamp without time zone");
3535

3636
modelBuilder
3737
.Entity<WorkEntry>()
38-
.Property(p => p.EndTime)
38+
.Property(entry => entry.EndTime)
3939
.HasColumnType("timestamp without time zone");
4040

4141
modelBuilder
4242
.Entity<WorkEntry>()
43-
.ToTable(t => t.HasCheckConstraint("ck_work_entries_type_not_zero", "\"type\" <> 0"));
43+
.ToTable(table => table.HasCheckConstraint("ck_work_entries_type_not_zero", "\"type\" <> 0"));
4444

4545
modelBuilder
4646
.Entity<WorkEntry>()
47-
.ToTable(t => t.HasCheckConstraint(
47+
.ToTable(table => table.HasCheckConstraint(
4848
"ck_work_entries_end_time_is_greater_than_start_time",
4949
"\"end_time\" > \"start_time\""));
5050

0 commit comments

Comments
 (0)