Generated code

Posts   
 
    
laetitia
User
Posts: 5
Joined: 03-Jul-2007
# Posted on: 19-Nov-2008 13:52:04   

Hello there, I have renamed a table in our database and it changed the code generated by llblgen. However the new generated code broke another layer refering to the generated llblgen code. When I compared the new generated code with the old one I found differences.
The first one is in in a file called RfiInvCatEntity.vb: In the initial file where it works _rfiIcDecomit is declared as RfiICDecomitEntity

Region "Class Member Declarations"

    Private _rfiCompliance As EntityCollection
    Private _rfiIcBenArea As EntityCollection
    Private _rfiIcBenSport As EntityCollection
    Private _rfiIcPayments As EntityCollection
    Private _rfiInvCatDetails As EntityCollection
    Private _rfiTargets As EntityCollection
    Private _task As EntityCollection
    Private _personAtOrgCollectionViaRfiCompliance As EntityCollection

etc... Private _investCategories As InvestCategoriesEntity Private _organisations As OrganisationsEntity Private _personAtOrg As PersonAtOrgEntity Private _rfi As RfiEntity '--> Private _rfiIcDecomit As RfiIcDecomitEntity '<-- Private Shared _customProperties As Hashtable Private Shared _fieldsCustomProperties As Hashtable

    ' __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
    ' __LLBLGENPRO_USER_CODE_REGION_END

End Region

But now when I regenerate the code it comes up as an EntityCollection:

Region "Class Member Declarations"

    Private _rfiCompliance As EntityCollection
    Private _rfiIcBenArea As EntityCollection
    Private _rfiIcBenSport As EntityCollection
    Private _rfiIcPayments As EntityCollection
    Private _rfiInvCatDetails As EntityCollection
    Private _rfiTargets As EntityCollection

'--> Private _rfiIcDecommit As EntityCollection '<-- Private _task As EntityCollection Private _personAtOrgCollectionViaRfiCompliance As EntityCollection etc... Private _investCategories As InvestCategoriesEntity Private _organisations As OrganisationsEntity Private _personAtOrg As PersonAtOrgEntity Private _rfi As RfiEntity

    Private Shared _customProperties As Hashtable
    Private Shared _fieldsCustomProperties As Hashtable

    ' __LLBLGENPRO_USER_CODE_REGION_START PrivateMembers
    ' __LLBLGENPRO_USER_CODE_REGION_END

End Region

We are using Adapter scenario Vs.Net 2003 I am obviously not understanding why it happens. Could you help please? Thanks you L

Walaa avatar
Walaa
Support Team
Posts: 14993
Joined: 21-Aug-2005
# Posted on: 19-Nov-2008 15:53:06   

Please make sure database schema has not changed. As it appears to me that the relation between RfiInvCatEntity and RfiICDecomitEntity has changed from m:1 to 1:m

Would you see them as entitycollections if you created a new llblgen project from the same schema?

laetitia
User
Posts: 5
Joined: 03-Jul-2007
# Posted on: 21-Nov-2008 08:59:05   

Yes it has indeed. Thank you for pointing that obvious point to me! L