manager templates and vs.net 2005

Posts   
 
    
erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 06-Jan-2006 19:08:18   

Not sure where to post this question but here goes.

Has anyone used the manager templates created by cmartinbot with vs.net 2005? I wanted to try vs.net 2005 and downloaded the express edition. Thought I would give it a try. So I created a new vs 2005 dal project, regenerated the dal code, and everything works fine. I then created a new project (dll), and regenerated the manager classes which seemed to work. The problem is when I compile, I get a amibigious (sp?) method error and not sure what the problem is. The error message is as follows:

The call is ambiguous between the following methods or properties: 'Guidanceware.Application.Bll.Managers.ManagerBase.FetchCollection( Guidanceware.Application.Dal.HelperClasses.EntityCollection, SD.LLBLGen.Pro.ORMSupportClasses.IDataAccessAdapter)' and 'Guidanceware.Application.Bll.Managers.ManagerBase.FetchCollection( Guidanceware.Application.Dal.HelperClasses.EntityCollection, SD.LLBLGen.Pro.ORMSupportClasses.IRelationPredicateBucket)' C:\Documents and Settings\Eric Richards\My Documents\Visual Studio 2005\Projects\guidanceware.bll\ConsoleApp\Program.cs 26 13 ConsoleApp

This error is generated with the following code (A simple test):

        EntityCollection pageTypeCollection = new EntityCollection(new PageTypeEntityFactory());
        PageTypeManager.FetchCollection(pageTypeCollection, null);
        foreach (PageTypeEntity pageType in pageTypeCollection)
            Console.WriteLine(pageType.Name);

Not sure where to go from here.

erichar11
User
Posts: 268
Joined: 08-Dec-2003
# Posted on: 07-Jan-2006 07:17:24   

OK quick update, my fault, as I was using PageTypeManager.FetchCollection incorrectly. Basically the second parameter should not be null.