LinkMetaData Tables Named object

Posts   
 
    
BaileyK83
User
Posts: 29
Joined: 30-Dec-2006
# Posted on: 22-Jul-2008 23:34:33   

Version 2.6 just downloaded

LinkMetaData.vb

The code generates this for entities named object

    ''' <summary>returns the datasource to use in a Linq query when targeting ObjectEntity instances in the database.</summary>
    Public ReadOnly Property Object As DataSource2(Of ObjectEntity)
        Get
            Return New DataSource2(Of ObjectEntity)(_adapterToUse, New ElementCreator(), _customFunctionMappings, _contextToUse)
        End Get
    End Property

but it should generate this of course.

    ''' <summary>returns the datasource to use in a Linq query when targeting ObjectEntity instances in the database.</summary>
    Public ReadOnly Property [Object]() As DataSource2(Of ObjectEntity)
        Get
            Return New DataSource2(Of ObjectEntity)(_adapterToUse, New ElementCreator(), _customFunctionMappings, _contextToUse)
        End Get
    End Property
daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 23-Jul-2008 06:07:57   

Please post the LLBLGen Pro version + buildnr (the LLBLGen Pro version and buildnr are retrievable from the window title bar of the designer or from the About box of the designer).

I can't reproduce that with the latest build: the offending entity is ignored by the generation process. Anyway, I think that would lead to compilation errors. Does exist the possibility you change the entity name?

David Elizondo | LLBLGen Support Team
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 23-Jul-2008 09:44:26   

It indeed doesn't enclose the property name in [] in VB.NET. We'll fix this in the next build.

Fixed in next build.

Frans Bouma | Lead developer LLBLGen Pro