LLBLGen 4.1 upgrade - EntityFields2 signature

Posts   
 
    
chand
User
Posts: 72
Joined: 05-Aug-2007
# Posted on: 28-Dec-2013 15:24:49   

Constructor change:

SD.LLBLGen.Pro.ORMSupportClasses.EntityFields2.EntityFields2(SD.LLBLGen.Pro.ORMSupportClasses.IEntityFieldCore[], SD.LLBLGen.Pro.ORMSupportClasses.IInheritanceInfoProvider, System.Collections.Generic.Dictionary<string,int>)

What is the purpose of the last parameter?

Our existing code (3.5 version) was using the constructor without that last parameter. Is it ok to pass that as null, or will that have any side effects?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39614
Joined: 17-Aug-2003
# Posted on: 29-Dec-2013 12:36:31   

In what context do you use this call? One shouldn't use these constructors in normal code. If you want a fields object use ResultsetFields.

Frans Bouma | Lead developer LLBLGen Pro
chand
User
Posts: 72
Joined: 05-Aug-2007
# Posted on: 29-Dec-2013 20:58:33   

I am not sure why that signature was used. Some it was working so far.

I removed all the calls that were using that signature. Now it is simply..

new EntitfyFields2(amount) {<fieldList>}

Thanks.