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
|
From the quick start:
Entity Identity – The Id Column LightSpeed has a convention that every table must have a column called Id. The type of this column corresponds to the Identity Type of the entity, in this case integer. Is this non-negotiable? There's no way to specify another field as the identity field? Cheers, Matt. |
|
|
In your .NET classes, the identity property is always called Id, because it is defined in the Entity<T> base class. In the database, you can use a different name for the identity column. In the designer, select the entity and enter the column name in the Table Name property. If you're writing the classes by hand, apply the TableAttribute to the entity class. There's some addditional info about overriding the LightSpeed naming conventions in the help file under Help Topics > LightSpeed > Conventions (scroll right down to the end). Hope this helps! |
|
|
It does, cheers for the quick reply :-)
|
|