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'm evaluating Lightspeed against other data access alternatives - NHibernate, EF, Micro ORMs, spring data, etc... I'm having issues with a couple things:
Calling this does not work:
This does (for obvious reasons):
I can also do something similar:
Any thoughts? Thanks. Jon |
|
|
The designer doesnt support the notion of one way associations as all associations in LightSpeed are expected to be bi-directional. As you have deducted you can represent these manually as part of partial class definition but if you do so then you will want to avoid using our EntityHolder/EntityCollection types as these will expect a bi-directional relationship to be present. For the cascade delete, because you have the relationship as nullable make sure you set the IsDependant attribute on the relationship. Also which side of the relationship do you currently have the FK defined on? e.g. do you have a Person.AddressId or do you have an Address.PersonId?
|
|
|
Jeremy Thanks for the feedback. I have the standard normal form of a fk_currentaddress field in the table for people. Jon |
|