Change Request

Posts   
 
    
johnman
User
Posts: 10
Joined: 11-Mar-2007
# Posted on: 14-May-2008 00:41:12   

Hi,

My current DB schema has a table called EntityType and when I generate code via LLBLGen the project fails to build LinqMetaData.cs method: public IDataSource GetQueryableForEntity(int typeOfEntity).

Now I could rename my table or rename the name of the object generated to avoid the conflict but I was wondering if the generated code could use the full (or more of) the namespace?

                    IDataSource toReturn = null;

                    switch((EntityType)typeOfEntity)
        {
            e.g.: case Data.EntityType.AddressEntity:

                            instead of: EntityType.AddressEntity:

Not a big deal as there are ways around it but I thought I would just throw it out there.

Cheers,

John

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39873
Joined: 17-Aug-2003
# Posted on: 14-May-2008 10:15:12   

It's also in other areas. I'll check it out. We did add the rootnamespace to EntityType on other places, the newer template code doesn't do this, this is correctable in the templates so I'll see if we can change that in newer template code.

Frans Bouma | Lead developer LLBLGen Pro
johnman
User
Posts: 10
Joined: 11-Mar-2007
# Posted on: 14-May-2008 23:49:46   

Otis wrote:

It's also in other areas. I'll check it out. We did add the rootnamespace to EntityType on other places, the newer template code doesn't do this, this is correctable in the templates so I'll see if we can change that in newer template code.

Thanks for the quick response!

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39873
Joined: 17-Aug-2003
# Posted on: 16-May-2008 15:16:08   

Fixed in next build. simple_smile

Frans Bouma | Lead developer LLBLGen Pro