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

Domain Property Ordering

1 Answer 24 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.
Colin
Top achievements
Rank 2
Colin asked on 30 Sep 2011, 01:40 PM
I'm struggling with this one, and maybe it's just a case of that's the way it is, but, in my Doman Class, called Product I have specified the following Properties:

ProductID : Int32
SupplierID : Int32
Description : String
Competition : Boolean
Notepad : String

And ProductID has it's Identity set to True.

Now, when the Database is created from the model why are the Properties names listed and therefore created in descending order? So:
SupplierID
ProductID
Notepad
Description
Competition

This is driving me nuts, surely this isn't right and they should be generated in the order in the Domain? The Table Mappings are in the order of the Domain, it's just the darn table in SQL :(

1 Answer, 1 is accepted

Sort by
0
Accepted
PetarP
Telerik team
answered on 30 Sep 2011, 04:17 PM
Hi Colin,

Currently our internal DifMerge algorithm used for creating the sql scripts is disregarding the actual column order and that is why your columns get reordered. This is a known issue and we are working on a fix.
Unfortunately due to the fact that this is internal code I cannot really provide you with a workaround at this moment.

Greetings,
Petar
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's SQL Server Community Awards. We are competing in TWO categories and every vote counts! VOTE for Telerik NOW >>

Tags
Getting Started
Asked by
Colin
Top achievements
Rank 2
Answers by
PetarP
Telerik team
Share this question
or