File tree 6 files changed +8
-8
lines changed
JsonApiDotNetCoreExampleTests/IntegrationTests
6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ protected override void OnModelCreating(ModelBuilder builder)
33
33
builder . Entity < MusicTrack > ( )
34
34
. HasOne ( musicTrack => musicTrack . Lyric )
35
35
. WithOne ( lyric => lyric . Track )
36
- . HasForeignKey < MusicTrack > ( ) ;
36
+ . HasForeignKey < MusicTrack > ( "LyricId" ) ;
37
37
}
38
38
}
39
39
}
Original file line number Diff line number Diff line change @@ -22,13 +22,13 @@ protected override void OnModelCreating(ModelBuilder builder)
22
22
builder . Entity < Building > ( )
23
23
. HasOne ( building => building . PrimaryDoor )
24
24
. WithOne ( )
25
- . HasForeignKey < Building > ( "PrimaryDoorKey " )
25
+ . HasForeignKey < Building > ( "PrimaryDoorId " )
26
26
. IsRequired ( ) ;
27
27
28
28
builder . Entity < Building > ( )
29
29
. HasOne ( building => building . SecondaryDoor )
30
30
. WithOne ( )
31
- . HasForeignKey < Building > ( "SecondaryDoorKey " )
31
+ . HasForeignKey < Building > ( "SecondaryDoorId " )
32
32
. IsRequired ( false ) ;
33
33
}
34
34
}
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ protected override void OnModelCreating(ModelBuilder builder)
22
22
builder . Entity < Photo > ( )
23
23
. HasOne ( photo => photo . Location )
24
24
. WithOne ( location => location . Photo )
25
- . HasForeignKey < Photo > ( "PhotoLocationKey " ) ;
25
+ . HasForeignKey < Photo > ( "LocationId " ) ;
26
26
}
27
27
}
28
28
}
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ protected override void OnModelCreating(ModelBuilder builder)
33
33
builder . Entity < WorkItemGroup > ( )
34
34
. HasOne ( workItemGroup => workItemGroup . Color )
35
35
. WithOne ( color => color . Group )
36
- . HasForeignKey < RgbColor > ( ) ;
36
+ . HasForeignKey < RgbColor > ( "GroupId" ) ;
37
37
38
38
builder . Entity < WorkItemTag > ( )
39
39
. HasKey ( workItemTag => new
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ protected override void OnModelCreating(ModelBuilder builder)
37
37
builder . Entity < Passport > ( )
38
38
. HasOne ( passport => passport . Person )
39
39
. WithOne ( person => person . Passport )
40
- . HasForeignKey < Person > ( "PassportKey " )
40
+ . HasForeignKey < Person > ( "PassportId " )
41
41
. OnDelete ( DeleteBehavior . SetNull ) ;
42
42
}
43
43
}
Original file line number Diff line number Diff line change @@ -54,13 +54,13 @@ protected override void OnModelCreating(ModelBuilder builder)
54
54
builder . Entity < Passport > ( )
55
55
. HasOne ( passport => passport . Person )
56
56
. WithOne ( person => person . Passport )
57
- . HasForeignKey < Person > ( "PassportKey " )
57
+ . HasForeignKey < Person > ( "PassportId " )
58
58
. OnDelete ( DeleteBehavior . SetNull ) ;
59
59
60
60
builder . Entity < TodoItem > ( )
61
61
. HasOne ( todoItem => todoItem . OneToOnePerson )
62
62
. WithOne ( person => person . OneToOneTodoItem )
63
- . HasForeignKey < TodoItem > ( "OneToOnePersonKey " ) ;
63
+ . HasForeignKey < TodoItem > ( "OneToOnePersonId " ) ;
64
64
}
65
65
}
66
66
}
You can’t perform that action at this time.
0 commit comments