Problem with PredicateFactory in SelfServicing code

Posts   
 
    
Posts: 7
Joined: 08-Sep-2005
# Posted on: 08-Sep-2005 18:15:36   

Whenever I insert PredicateFactory into the code the compiler generates an error

"Name 'PredicateFactory' is not declared"

All references are correct including sd.LLBLGen.Pro.ORMSupportClasses

This is a web project.

Any help will be much appreciated as this is driving me up the wall.

Thanks Sumeet

Posts: 112
Joined: 09-Aug-2004
# Posted on: 08-Sep-2005 18:25:11   

PredicateFactory is in the Factory Classes of your generated project. So If you named your generated classes BL try

BL.FactoryClasses.PredicateFactor

Or at the top of your code put for C#

using BL.FactoryClasses

Or VB.NET

Imports BL.FactoryClasses