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

Ordering...

5 Answers 83 Views
Getting Started
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
sitefinitysteve asked on 19 Jun 2010, 04:06 AM
My DBA is having a fit because the forward mapping is sorting alphabetically instead of logically with the PKs first, and Timestamps last (his preferred table structure)

Is there REALLY nothing I can do here?

5 Answers, 1 is accepted

Sort by
0
Ady
Telerik team
answered on 21 Jun 2010, 03:05 PM
Hi Steve,

 The PKs are first and then the rest of the columns are alphabetically sorted. If field mapping specified, the columns appear in the order in which the mapping is specified. So you could specify the field mapping in the order you want the columns to be created. This is a tedious but currently the only way in which you could control the column sort order.

Regards,
Ady
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 21 Jun 2010, 03:09 PM
Should I be applying an OA attribute to the Property to define it as a PK?  Right now I'm just going through the wizard, and it's not sorting the PKs as first when it generates the tables...
0
Ady
Telerik team
answered on 22 Jun 2010, 10:33 AM
Hi Steve,

 No, you do not need to apply any attribute to define the order. It is strange that you do not get the PKs first. Is it possible to send me the domain model so that I could have a look? If I define a class model without any mapping I do observe the default sorting with the PKs first.

All the best,
Ady
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
0
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
answered on 22 Jun 2010, 12:55 PM
Ok, I'll submit a ticket
0
Ady
Telerik team
answered on 23 Jun 2010, 01:57 PM
Hello Steve,

 Thank you for the project. As pointed out in the support, there is currently no direct way to control the column creation order. You would have to manually modify the .sql file that is generated in the output folder.
We will consider this for further improvement.

Kind regards,
Ady
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
Tags
Getting Started
Asked by
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Answers by
Ady
Telerik team
sitefinitysteve
Top achievements
Rank 2
Iron
Veteran
Share this question
or