This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
I am evaulating multiple OR/M software packages for a middle tier rebuild at my company. As such I would to know how I would use your product to map the newly created data access layer to our existing business objects? Is this possible? It looks like the data layer and business layer are tightly integrated. Thanks |
|
|
Hi Eric, LightSpeed is designed around the notion of creating domain models rather than being a typical DAL. To this end, we believe in creating rich domain entities - giving your data access mapped classes behavior and making it a rich representation of the domain you're working in. The usual pattern that use used by developers is to use the designer to create basic entities and then create partial classes to add behaviors and business logic. This results in a physical seperation but when working with the domain objects you get the benefits of both. You can of course just pretend the entities are simply primitive objects holding values and work with them in your business layer but this does result in ignoring a lot of the benefits of using LightSpeed model objects directly in your application. For example, if you follow the CSLA way of thinking, business objects provide much of the features that you require for databinding, validation etc. LightSpeed incorporates this into the entities already - we have a validation framework, all entities implement INotifyPropertyChanged, IEditableObject, IErrorDataInfo which facilitate nice databinding and error notification. Perhaps in your case, because you're rebuilding just part of an application, you may want to ignore these values provided by LightSpeed. I hope this response helps clarify things - it's not so much a "yes" or "no" response because it's really up to you how you use the LightSpeed entities in your system. If you have any further questions then please ask. I hope that helps, John-Daniel |
|