E
Eric Cathell
I am using dOOdads as my persistence layer.
I have a business object Person that sits in a Project called DOMAIN
I have 2 dOOdads in a project called BLL.
one is _Person and is declared MustInherit
the other is Person and is my concrete class.
My main goal of BLL.Person is to protect custom methods and properties
against regeneration.
DOMAIN.Person is my actual object for all my Rules and such for person.
so in DOMAIN.Person I have code like this
Private _person As BLL.Person
Public Function getPersonByID(ByVal id As Integer) As BLL.Person
If _person.LoadByPrimaryKey(id) = False Then
Throw New Person.InvalidPersonException
End If
Return _person
End Function
The problem is I am getting the following error in my compiler:
Construct makes an indirect reference to project 'WavelengthIS.CMR.BLL',
which contains 'WavelengthIS.CMR.BLL.Person'. Add a project reference to
'WavelengthIS.CMR.BLL' to your project. C:\Documents and
Settings\ecathell\My Documents\Visual Studio
2005\Projects\WavelengthIS\CMR-Versioned\NunitTESTS\Form1.Designer.vb
Now I am sure there is some design way around this. I am just delving into
some of the more complex patterns and the thought is at the tip of my brain.
I am missing an interface somewhere( probably in my function) as IPerson.
but if I do an interface on IPerson...how do I maintain the bll._person to
bll.Person inheritence?
Hopefully what I am asking makes some kind of sense.
I have a business object Person that sits in a Project called DOMAIN
I have 2 dOOdads in a project called BLL.
one is _Person and is declared MustInherit
the other is Person and is my concrete class.
My main goal of BLL.Person is to protect custom methods and properties
against regeneration.
DOMAIN.Person is my actual object for all my Rules and such for person.
so in DOMAIN.Person I have code like this
Private _person As BLL.Person
Public Function getPersonByID(ByVal id As Integer) As BLL.Person
If _person.LoadByPrimaryKey(id) = False Then
Throw New Person.InvalidPersonException
End If
Return _person
End Function
The problem is I am getting the following error in my compiler:
Construct makes an indirect reference to project 'WavelengthIS.CMR.BLL',
which contains 'WavelengthIS.CMR.BLL.Person'. Add a project reference to
'WavelengthIS.CMR.BLL' to your project. C:\Documents and
Settings\ecathell\My Documents\Visual Studio
2005\Projects\WavelengthIS\CMR-Versioned\NunitTESTS\Form1.Designer.vb
Now I am sure there is some design way around this. I am just delving into
some of the more complex patterns and the thought is at the tip of my brain.
I am missing an interface somewhere( probably in my function) as IPerson.
but if I do an interface on IPerson...how do I maintain the bll._person to
bll.Person inheritence?
Hopefully what I am asking makes some kind of sense.