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
|
Hello again, I was wondering if it is possible to change the default IdenityMethod for a new Entity to something other than KeyTable. If not then it is ok, this is a very minor issue, I will continue to set it manually each time |
|
|
Set the IdentityMethod on the LightSpeedContext, either in code or through configuration. Then you can leave the IdentityMethod on the entity as "Default," which is the designer default. This is in fact the normal way of doing things -- setting IdentityMethod at the entity level is the exception rather than the rule, and was added only to support the case where different entities in the same model need different identity strategies (I think the specific issue was a customer who had integer IDs for most tables, but had a few with GUID IDs that therefore needed a GUID-oriented identity method). It's unfortunate that entity-level IdentityMethod is more visible in the user interface because this does make a lot of users think that they have to set it on every entity. |
|