igor-tkachev/bltoolkit — pull request #58 by calterras (2011-10-18 08:27:30+00:00)
Title: The VB template translates the one to one foreign keys wrong

CORRECTION: the VB template translates the one to one foreign keys as if it were one to many.
for example in the table Products, the FK to Categories was generated

Private _Category As IEnumerable(Of Category)

instead of the correct

Private _Category As Category

To reproduce the error

1. edit the file linq/demo/datamodel/Northwind.tt and add the 5 line
<#@ include file="vb.ttinclude" #>
2. copy VB.ttinclude file from templates
3. regenerate Northwind.generated.vb