C
cwertman
I have a question regarding dynamic properties.
I have an Object say
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
This is in a Application Service Provider Model, so say Client 1 has
only those properties available for account.
NOW Client 2 has some additional requirments
That may look like so
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
--Entity
--ParentId
--LastContactDate
The Third Client may have these requrments
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
--Source
--HairColor
I am using .Net 2.0 with SQL 2005 for the Data, and DAAB for the DAL,
but IBatis or NHibernate are also options, and I am familiar with the
usage of both.
All of the above are the same through Suffix, but I would like to be
able to dynamically assign properties to these objects, the DAL can
support it so there is no problem there.
ON the interface layer I dont have a problem dealing with these, so no
problem there , my question is at the object level what is the most
EFFICIENT way to deal with these ?
What is the best (or any way and I can decide later) the best
implementation of allowing a "Per Client" config of properties on
several core objects, say Account, Transactions, Orders, Contacts, etc
?
I have several working possibilities, but quite frankly would like
some feedback before I implment this in production, some of the
solutions I have seem a little heavy handed.
I am seeking feedback on options I may not have sen, thought of or
pursued.
Thanks
Chris
I have an Object say
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
This is in a Application Service Provider Model, so say Client 1 has
only those properties available for account.
NOW Client 2 has some additional requirments
That may look like so
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
--Entity
--ParentId
--LastContactDate
The Third Client may have these requrments
Account
--Id
--Prefix
--Fname
--Lname
--Suffix
--RecordType
--Source
--HairColor
I am using .Net 2.0 with SQL 2005 for the Data, and DAAB for the DAL,
but IBatis or NHibernate are also options, and I am familiar with the
usage of both.
All of the above are the same through Suffix, but I would like to be
able to dynamically assign properties to these objects, the DAL can
support it so there is no problem there.
ON the interface layer I dont have a problem dealing with these, so no
problem there , my question is at the object level what is the most
EFFICIENT way to deal with these ?
What is the best (or any way and I can decide later) the best
implementation of allowing a "Per Client" config of properties on
several core objects, say Account, Transactions, Orders, Contacts, etc
?
I have several working possibilities, but quite frankly would like
some feedback before I implment this in production, some of the
solutions I have seem a little heavy handed.
I am seeking feedback on options I may not have sen, thought of or
pursued.
Thanks
Chris