Hi All
I'm having a problem with my objects which i'm hoping is not a restriction of using CSLA.
I have a class "NonSpecificVehicleSought" which inherits from a base class "VehicleBase" which in turn inherits from "BusinessBase"
i.e.
public
abstract class VehicleBase : BusinessBase<VehicleBase>public
class NonSpecificVehicleSought : VehicleBaseIn my NonSpecificVehicleSought class, I have a factory method call "NewNonSpecificVehicleSought" which calls the DataPortal.Create method.
i.e.
public static NonSpecificVehicleSought NewNonSpecificVehicleSought(){
return DataPortal.Create(new Criteria());}
My problem is that the compiler is complaining:
i.e.
"Error 1 The name 'DataPortal' does not exist in the current context C:\$Crypt\Development\LoyaltyLogistix\Automotive\Autolog\Autolog.Library\Stock\NonSpecificVehicleSought.cs 151 20 Autolog.Library
"Is this a limitation of the CSLA framework of am I doing something silly?
TIA
Smeat
Changing my "NewNonSpecificVehicleSought" method to the following solved my problem:
public static NonSpecificVehicleSought NewNonSpecificVehicleSought(){
return (NonSpecificVehicleSought) Csla.DataPortal.Create(new Criteria());}
Guess I should have spent a bit more time looking at this before I posted my original question.
Thx
Smeat
Copyright (c) Marimer LLC