Need auto-generated primary key without trigger

2 posts, 0 answers
  1. Clint
    Clint avatar
    1 posts
    Member since:
    Nov 2014

    Posted 27 Jul 2015 Link to this post

    As a Telerik Data Access user

    I should be able to specify annotations that define a primary key that is automatically generated, inserted into the C# class to be stored and then store the data contained in that class in a single, atomic operation (similar to the Hibernate annotations for a pKey member of a class below)

    so that I do not have to define a trigger and I can call a single method to perform this insert

    @Id

    @GenericGenerator(name="pKeyGenerator" , strategy="increment")

    @GeneratedValue(generator="theSequence")

    @Column(name="pKeyColumn")

  2. Doroteya
    Admin
    Doroteya avatar
    502 posts

    Posted 29 Jul 2015 Link to this post

    Hello Clint,

    Thank you for contacting us.

    Based on your description I created a feature request item on our Ideas and Feedback portal. Here is the URL to the item. Additionally, I would kindly ask you to provide a few more details regarding the backend you are using and the scenarios in which you consume it.


    Regards,
    Doroteya
    Telerik
     
    Check out the latest announcement about Telerik Data Access vNext as a powerful framework able to solve core development problems.
  3. DevCraft banner
Back to Top