R
Rob Meade
Hi all,
Ok - I have a few objects I've created, some live in my dal, some in my bol
and some in my ui...
Here's the thing - I have the need to persist an ID which is used for
display purposes only (control ID) and the only place I can persist this is
in one of my objects (session variables are not acceptable)....the problem
is - the object which it would most likely go in belongs in my bol...to me
this feels wrong, oh so very wrong, as my understanding, whilst limited is
that objects in my bol should not know about ui things equally not know
about dal things...
So, here's the question - would it be more appropriate to have a UI object
specifically created and form part of my bol object as opposed to just
having a class variables in bol object?
Example...
bol object
Resource object
private _displayControlID as guid
OR
Control object
private _controlID as guid
and then have
Resource Object
Private _controlObject as ControlObject
Does the above make any sense? Hope so - not easy to explain and didn't want
to write mammoth amounts of code to explain it...any advice would be
appreciated..
Regards
Rob
Ok - I have a few objects I've created, some live in my dal, some in my bol
and some in my ui...
Here's the thing - I have the need to persist an ID which is used for
display purposes only (control ID) and the only place I can persist this is
in one of my objects (session variables are not acceptable)....the problem
is - the object which it would most likely go in belongs in my bol...to me
this feels wrong, oh so very wrong, as my understanding, whilst limited is
that objects in my bol should not know about ui things equally not know
about dal things...
So, here's the question - would it be more appropriate to have a UI object
specifically created and form part of my bol object as opposed to just
having a class variables in bol object?
Example...
bol object
Resource object
private _displayControlID as guid
OR
Control object
private _controlID as guid
and then have
Resource Object
Private _controlObject as ControlObject
Does the above make any sense? Hope so - not easy to explain and didn't want
to write mammoth amounts of code to explain it...any advice would be
appreciated..
Regards
Rob