using [Namespace].HelperClasses not added

Posts   
 
    
droach001
User
Posts: 5
Joined: 18-Aug-2006
# Posted on: 12-Oct-2006 21:33:54   

Im using LLBLGenPro 2.0.0.0

for some reason only the following references are being added to my EntityClasses


using System;
using System.ComponentModel;
using System.Collections;
#if !CF
using System.Runtime.Serialization;
#endif
using com.metlife.or.demondb.FactoryClasses;
using com.metlife.or.demondb.CollectionClasses;
using com.metlife.or.demondb.DaoClasses;
using com.metlife.or.demondb.RelationClasses;

using SD.LLBLGen.Pro.ORMSupportClasses;

I need the HelperClasses reference to be added automatically. When I look at the Entity.template file (which I thought was being used), I see the following:


///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: <[LLBLGenVersion]>
// Code is generated on: <[Time]>
// Code is generated using templates: <[TemplateName]>
// Templates vendor: Solutions Design.
// Templates version: <[TemplateVersion]>
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections.Generic;
#if !CF
using System.Runtime.Serialization;
#endif
using System.Data;
using System.Xml.Serialization;
using <[RootNamespace]>;
using <[RootNamespace]>.FactoryClasses;
using <[RootNamespace]>.DaoClasses;
using <[RootNamespace]>.RelationClasses;
using <[RootNamespace]>.HelperClasses;
using <[RootNamespace]>.CollectionClasses;
<[Foreach AdditionalNamespaces CrLf]>using <[CurrentAdditionalNamespace]>;<[NextForeach]>
using SD.LLBLGen.Pro.ORMSupportClasses;

I cant figure out why HelperClasses is being dropped.

Anyone else have this problem?

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 13-Oct-2006 09:11:24   

Post the template group + .NET version you're using. It's essential for us that you specify if you use Adapter or Selfservicing and also which .NET version.

If you're using custom made templates, please explain these as well. If you're using altered templates, please state so so we don't try to repro it with the standard templates.

As stated on: http://www.llblgen.com/TinyForum/Messages.aspx?ThreadID=7725

Also please post the Designer release date (Help->About)

droach001
User
Posts: 5
Joined: 18-Aug-2006
# Posted on: 14-Oct-2006 00:41:16   

Im using:

Target Language: C# Platform: .NET 2.0 Template Group: Self Servicing

Selected Present: SelfServicing.TwoClasses2005

Template Bindings:

SharedTemplates.BackwardsCompatability SharedTemplates.NET20 AccessSpecific.NET20

I am NOT using custom templates.

Thanks, Doug

bclubb
User
Posts: 934
Joined: 12-Feb-2004
# Posted on: 14-Oct-2006 02:58:05   

Are you certain that the file is not marked read-only? Or that they may be extracted to a different directory? Many of the namespaces for the 2.0 version are not being pulled in.

droach001
User
Posts: 5
Joined: 18-Aug-2006
# Posted on: 14-Oct-2006 05:45:09   

Yes. I am sure. See version/timestamp below:


///////////////////////////////////////////////////////////////
// This is generated code. 
//////////////////////////////////////////////////////////////
// Code is generated using LLBLGen Pro version: 2.0.0.0
// Code is generated on: Friday, October 13, 2006 11:40:47 PM
// Code is generated using templates: SD.TemplateBindings.SharedTemplates.NET20
// Templates vendor: Solutions Design.
// Templates version: 
//////////////////////////////////////////////////////////////
using System;
using System.ComponentModel;
using System.Collections;
#if !CF
using System.Runtime.Serialization;
#endif
using com.metlife.or.demondb.FactoryClasses;
using com.metlife.or.demondb.CollectionClasses;
using com.metlife.or.demondb.DaoClasses;
using com.metlife.or.demondb.RelationClasses;

using SD.LLBLGen.Pro.ORMSupportClasses;

namespace com.metlife.or.demondb.EntityClasses



Otis avatar
Otis
LLBLGen Pro Team
Posts: 39927
Joined: 17-Aug-2003
# Posted on: 14-Oct-2006 11:46:11   

2-class scenario selfservicing uses the following entity templates: entityBase.template for the base entity class (e.g. CustomerEntityBase) entityUsingEntityBase.template for the derived entity class. (e.g. CustomerEntity, deriving from CustomerEntityBase)

Checking these templates the namespace is there, also in generated code the namespace is there.

Are you using resharper or other add-in which removes un-used 'using' statements?

Frans Bouma | Lead developer LLBLGen Pro
droach001
User
Posts: 5
Joined: 18-Aug-2006
# Posted on: 16-Oct-2006 02:20:46   

Ah. When I checked entityUsingEntityBase, the using statement was missing for [Namespace].HelperClasses.

When i added it to the entityUsingEntityBase.template file, that solved my problem.

Curious what the purpose of the entity.template file is... I expected it to be the template that the entity classes would be based on.

Thanks for clarifying this for me, you solved my problem.

Much appreciated.

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 16-Oct-2006 08:56:46   

Curious what the purpose of the entity.template file is

Used for SelfServicing (One Class scenario).