NavigationProperties and ProxyCreationEnabled
Posted: Wed 23 Jul 2014 12:10
Hi all,
I was trying thin following thing:
In the last line an error occured,becausethe navigation property Childs is nothing.
This is the case, because the T4 template provided by DevArt has the following lines:
If ProxyCreationEnabled is set to true, all navigationproperties looks like this:
If ProxyCreationEnabled is false then it looks like this:
I'm sorry, but I don't really understand that design. Could you please explain it to me.
Thanks a lot.
Ansgar
I was trying thin following thing:
Code: Select all
Dim par = New Parent
Dim ch As New Child
par.Childs.add(ch)
This is the case, because the T4 template provided by DevArt has the following lines:
Code: Select all
If (Not ProxyCreationEnabled) Then
#> = New HashSet (Of <#= relationType #>)<#+
End If
Code: Select all
Public Overridable Property TABLENAMEs() As ICollection(Of TABLENAME)
Code: Select all
Public Overridable Property TABLENAMEs() As ICollection(Of TABLENAME) = New HashSet(Of TABLENAME)
Thanks a lot.
Ansgar