Custom Sequence name for autoinc field

2 posts, 0 answers
  1. Arnaud
    Arnaud avatar
    25 posts
    Member since:
    Jan 2013

    Posted 02 Dec 2015 Link to this post

    Hello

    I have trouble with autoinc field, especially with Postgresql, and long name sequence. (see my previsous thread link)

    You indicate on 31 Oct 2013, this bug will be fixed (with reading sequence name in schema) but, I updated my version with 2015.2.624.1 and I always have this problem.

    I have an other idea, I would simplified sequence name with syntax "tablename_seq" but I can't define sequence name in fluent model.

    I have read this other thread (link) for defining fk constraint name in OnDatabaseOpen but I debug MetadataContainer and I don't see any property with sequence name. It's possible ?

    Other possibility, modify MetaNameGenerator and SequenceColumnName for applying my logic but I don't find how.

    Can you help me ?

    Thanks in advance

  2. Ralph Waldenmaier
    Admin
    Ralph Waldenmaier avatar
    202 posts

    Posted 04 Dec 2015 Link to this post

    Hello Arnaud,
    Thank you for contacting us.
    Unfortunately, the mentioned bug has not been fixed so far and the workaround proposed by Ady at that time is still valid. As of now, there is also no possibility to specify the sequence name within the metadata container either using the OnDatabaseOpen override or using the Fluent API.

    Feel free to contact us again in case you have any other question.

    Regards,
    Ralph Waldenmaier
    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