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

Column order in the database

1 Answer 52 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Iftekhar Ivaan
Top achievements
Rank 1
Iftekhar Ivaan asked on 25 Mar 2009, 05:12 AM
I have created a class which has some property. After I to the forward mapping to the database all the column in the database table created but in random order. I would like to create all the column in the order I have created in the class. or some define order I like. Is it possible to do this. It lookes bery confusing when you look at the table in the database which was created by forward mapping.

Thanks

1 Answer, 1 is accepted

Sort by
0
Thomas
Telerik team
answered on 26 Mar 2009, 12:39 PM
Hi Iftekhar Ivaan,

this is currently not possible. But I can assure you that the order is not random! It rather uses a per-inheritance-level alphabetical ordering, with the exception that the primary key, discriminator and version fields are handled differently (pk goes to front, discriminator and version to the end of the first inheritance level).

Hope this clarifies it a bit,
Thomas
the Telerik team

Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Iftekhar Ivaan
Top achievements
Rank 1
Answers by
Thomas
Telerik team
Share this question
or