This is a migrated thread and some comments may be shown as answers.

No Auto Incrementing non primary keys?

1 Answer 64 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 22 Jun 2010, 03:57 AM
Error    3    The column Number is specified as an autoincrement but it is not a primary key column.    C:\Users\Alex\Desktop\Documents\Visual Studio 2010\Projects\SunixSilver OA\DAL\EntityDiagrams1.rlinq    0    0   

Why is this so?
There are no errors on the DB side, why would there be an error on the ORM side?


(I do plan on phasing out the auto increment with triggers/stored proc's, but I'm curious as to why it brings up an error)

1 Answer, 1 is accepted

Sort by
0
PetarP
Telerik team
answered on 22 Jun 2010, 12:42 PM
Hello Alexander Sun,

The Telerik OpenAccess ORM domain model comes with build in validation framework. The framework is run to ensure the consistency of your Meta model. Having that in mind our validation framework considers the case where you have auto inc on a column that is not primary key as an error. This however is not a compile time error and you should be able to continue your work anyway. Be advised that any errors reported by the validation framework might cause runtime errors on a later stage.

Sincerely yours,
Petar
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
PetarP
Telerik team
Share this question
or