File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
test/EFCore.Specification.Tests/Query Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -319,8 +319,15 @@ private class ContextNonOptionalComplexTypeViaLeftJoin(DbContextOptions options)
319319
320320 protected override void OnModelCreating ( ModelBuilder modelBuilder )
321321 {
322- modelBuilder . Entity < ProjectProperty > ( ) . HasOne ( p => p . Project ) . WithMany ( p => p . Properties ) . HasForeignKey ( p => p . ProjectId ) ;
323- modelBuilder . Entity < ProjectLifetime > ( ) . HasBaseType < ProjectProperty > ( ) . ComplexProperty ( p => p . Lifetime ) . IsRequired ( true ) ;
322+ modelBuilder . Entity < ProjectProperty > ( )
323+ . HasOne ( p => p . Project )
324+ . WithMany ( p => p . Properties )
325+ . HasForeignKey ( p => p . ProjectId ) ;
326+
327+ modelBuilder . Entity < ProjectLifetime > ( )
328+ . HasBaseType < ProjectProperty > ( )
329+ . ComplexProperty ( p => p . Lifetime )
330+ . IsRequired ( true ) ;
324331 }
325332
326333 public class Project
You can’t perform that action at this time.
0 commit comments