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

Custom Sequence name for autoinc field

1 Answer 22 Views
Development (API, general questions)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Olivier
Top achievements
Rank 1
Olivier asked on 02 Dec 2015, 08:48 AM

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

1 Answer, 1 is accepted

Sort by
0
Ralph Waldenmaier
Telerik team
answered on 04 Dec 2015, 08:33 AM
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.
Tags
Development (API, general questions)
Asked by
Olivier
Top achievements
Rank 1
Answers by
Ralph Waldenmaier
Telerik team
Share this question
or