Wrong usings (references to the model) generated?

Posts   
 
    
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 03-Jan-2011 18:37:17   

hi,

i am using llblgen pro 3.0 newest, ef 4.0, vs 2010, .net fw 4.0, sql server 2008 r2, ms windows 7 64.

in my context class the following using statments are generated:

using CAG.Framework.Data.Smc.EntityClasses; using CAG.Framework.Data.Smc.TypedListClasses;

what i would expect (and need) is:

using CAG.Smc.Model.EntityClasses using CAG.Smc.Model.TypedListClass

and this is the code part in the template which produces the usings above: <% if(_executingGenerator.Entities.Count>0)

{

%>using <%=_executingGenerator.RootNamespaceToUse%>.EntityClasses;

<% }

if(_executingGenerator.TypedLists.Count>0)

{

%>using <%=_executingGenerator.RootNamespaceToUse%>.TypedListClasses;

<%

}

where are the switches to changes this.

regards

chris

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 04-Jan-2011 04:58:41   

What template preset are you using? (v1 style, POCO persistence only, self-tracking,..._) What are your root namespace? What are the additional root namespace you configured in your domain model and persistence task groups?

David Elizondo | LLBLGen Support Team
chrissie
User
Posts: 84
Joined: 05-Oct-2010
# Posted on: 04-Jan-2011 12:42:04   

hi david,

after your help to my last post the situation in terms of generated namespaces changed too. now it looks much better so i will look if this is what i need. i mark this thread as "done" and will open a new thread if i need further help.

thank you, regards

chris