Domain Property Ordering

2 posts, 1 answers
  1. Colin
    Colin avatar
    19 posts
    Member since:
    Jun 2011

    Posted 30 Sep 2011 Link to this post

    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:

    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 :(
  2. Answer
    PetarP avatar
    754 posts

    Posted 30 Sep 2011 Link to this post

    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.

    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 >>

  3. DevCraft banner
Back to Top