@@ -1774,6 +1774,10 @@ End Namespace
17741774 Dim expectedEntityCode1 =
17751775"Namespace TestNamespace
17761776 Public Partial Class Blog
1777+ Public Sub New ()
1778+ Posts = New HashSet( Of Post)()
1779+ End Sub
1780+
17771781 Public Property Id As Integer
17781782
17791783 Public Overridable Property Posts As ICollection( Of Post)
@@ -1784,6 +1788,10 @@ End Namespace
17841788 Dim expectedEntityCode2 =
17851789"Namespace TestNamespace
17861790 Public Partial Class Post
1791+ Public Sub New ()
1792+ Blogs = New HashSet( Of Blog)()
1793+ End Sub
1794+
17871795 Public Property Id As Integer
17881796
17891797 Public Overridable Property Blogs As ICollection( Of Blog)
@@ -1911,6 +1919,10 @@ End Namespace
19111919 Dim expectedEntityBlog =
19121920"Namespace TestNamespace
19131921 Public Partial Class Blog
1922+ Public Sub New ()
1923+ Posts = New HashSet( Of Post)()
1924+ End Sub
1925+
19141926 Public Property Id As Integer
19151927
19161928 Public Overridable Property Posts As ICollection( Of Post)
@@ -1920,6 +1932,10 @@ End Namespace
19201932 Dim expectedEntityPost =
19211933"Namespace TestNamespace
19221934 Public Partial Class Post
1935+ Public Sub New ()
1936+ Blogs = New HashSet( Of Blog)()
1937+ End Sub
1938+
19231939 Public Property Id As String
19241940
19251941 Public Overridable Property Blogs As ICollection( Of Blog)
@@ -2043,6 +2059,10 @@ Imports Microsoft.EntityFrameworkCore
20432059
20442060Namespace TestNamespace
20452061 Public Partial Class Blog
2062+ Public Sub New ()
2063+ Posts = New HashSet( Of Post)()
2064+ End Sub
2065+
20462066 < Key >
20472067 Public Property Id As Integer
20482068
@@ -2060,6 +2080,10 @@ Imports Microsoft.EntityFrameworkCore
20602080
20612081Namespace TestNamespace
20622082 Public Partial Class Post
2083+ Public Sub New ()
2084+ Blogs = New HashSet( Of Blog)()
2085+ End Sub
2086+
20632087 < Key >
20642088 Public Property Id As Integer
20652089
0 commit comments