Column order in the database

Thread is closed for posting
2 posts, 0 answers
  1. Iftekhar Ivaan
    Iftekhar Ivaan avatar
    17 posts
    Member since:
    Apr 2006

    Posted 25 Mar 2009 Link to this post

    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.

  2. Thomas
    Thomas avatar
    590 posts

    Posted 26 Mar 2009 Link to this post

    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,
    the Telerik team

    Check out Telerik Trainer , the state of the art learning tool for Telerik products.
Back to Top