Update from database

2 posts, 0 answers
  1. Michael
    Michael avatar
    29 posts
    Member since:
    Nov 2010

    Posted 20 Jun 2011 Link to this post

    I notice strange behavior with "Update from Database" option. When I create model from database OAORM follow order of columns in tables, but when I create new table in database and want to add that table in model throw option "Update from database" OAORM offer me new table, but when OAORM add that table, fields are order by name ascending and not by how they are in actual table! That is not how is supposed to work!


    p.s. Enviroment :
      Database : PostgreSQL 8.4
      OAORM : 2011.1.316.10
      VS 2010
  2. Alexander
    Alexander avatar
    727 posts

    Posted 22 Jun 2011 Link to this post

    Hi Michael,

    We tried to reproduce this behavior but with no success. Please note that the properties of the classes in the diagram are ordered as follows - the identity members are first, next are the normal properties sorted by name and at the end are the navigational properties.

    Could you please do the following test - create a domain model and include one table, then create another empty model and use the Update from Database wizard to include the same table you have added to the first model. Normally the two models should not differ in any way. Please compare them and if there are any differences send us the table definition, so we can try the exact same setup on our side and locate the problem. Thank you in advance for the cooperation.

    Kind regards,
    the Telerik team
    Want to use Telerik OpenAccess with SQL Azure? Download the trial version today. 
  3. DevCraft banner
Back to Top