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
|
Hi Support, I have been trying to get my SQL2005 table with a CHAR(4) natural key to work with Lightspeed. I followed the instructions found in this thread http://www.mindscapehq.com/forums/thread/260383. I implemented a partial class to override GeneratedId() method, and I can now create new entities on the unit of work.
Retailer entity is using default Identity method.
However, when I try to call UnitOfWork.FindById
Do I need to implement a discriminator ? Thanks in advance, Damien. |
|
|
You will need a default constructor defined on that class to allow LightSpeed to instantiate new instances of this class.
|
|
|
Ok, of course that makes sense. Added this to the partial class :-
and it all came right. Thanks Jeremy. |
|