How to create a platform ontop of CSLA? <-- if in case it make sense

Posted by Peejay on Stack Overflow See other posts from Stack Overflow or by Peejay
Published on 2010-03-11T10:15:04Z Indexed on 2010/03/22 11:11 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hi all!

here is the senario, i'm developing an application using csla 3.8 / c#.net, the application will have different modules. its like an ERP, it will have accounting, daily time record, recruitment etc as modules.

Now the requirement is to check for common entities per module and build a "platform" (<- the boss calls it that way) from it. for example, DTR will have an entity "employee", Recruitment will have "Applicant" so one common entity that you can derive from both that can be put in the platform is "Person". "Person" will contain typical info like name, address, contact info etc.

I know it sounds like OOP 101. the thing is, i dont know how i am to go about it. how i wish it was just a simple inheritance but the requirement is like to create an API of some sort to be used by the modules using CSLA.

in csla you create smart objects right, inheriting from the base classes of csla like businessListbase, readonlylistbase etc. right? what if for example i created a businessbase Applicant class, it will have properties like salary demand, availability date etc. now for the personal info i will need the "Person" from the "platform" and implement it to the applicant class.

so in summary i have several questions:

  1. how to create such platform?
  2. if such platform is possible, how will it be implemented on each module's entities? (im already inheriting from base clases of csla)
  3. if incase 1 and 2 are possible, does it have advantages on development and maintenace of the app?

the reason why i'm asking #3 is because the way i see it, even if i am able to create a platform for that, i will be needing to define properties of the platform entity on my module entities so to have validation and all. im sorry if i'm typing nonesense i'm really confused.

hope someone could enlighten me. thank you all!

© Stack Overflow or respective owner

Related posts about csla

Related posts about c#.net