No Auto Incrementing non primary keys?

Thread is closed for posting
2 posts, 0 answers
  1. Alex
    Alex avatar
    141 posts
    Member since:
    Mar 2010

    Posted 21 Jun 2010 Link to this post

    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)
  2. PetarP
    PetarP avatar
    754 posts

    Posted 22 Jun 2010 Link to this post

    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,
    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
Back to Top