Unique field.

Thread is closed for posting
3 posts, 0 answers
  1. Fabrizio
    Fabrizio avatar
    2 posts
    Member since:
    Dec 2013

    Posted 10 Jul 2014 Link to this post

    can i set a string field as "unique" (not duplicate)?
    Best regards.

  2. Kristian Nikolov
    Kristian Nikolov avatar
    206 posts

    Posted 11 Jul 2014 Link to this post

    Hello Fabrizio,

    At runtime, you can use our Low Level ADO.API to execute SQL script that specifies a table column as unique.

    However it is not currently possible to specify non Primary Key property as unique via your model and then push the constraint to the database. We do however have a request for such feature at our Feedback Portal. We would like to invite you to vote for it as doing so will help us to prioritize its eventual implementation.

    You can also consider whether a custom validation attribute would be and applicable approach for your situation.

    I hope this helps. If you have additional questions or need help, feel free to post at our forums again.

    Kristian Nikolov
    OpenAccess ORM is now Telerik Data Access. For more information on the new names, please, check out the Telerik Product Map.
  3. Fabrizio
    Fabrizio avatar
    2 posts
    Member since:
    Dec 2013

    Posted 11 Jul 2014 in reply to Kristian Nikolov Link to this post

    Thank you Kristian.
Back to Top