ORM Mapping File bug

Thread is closed for posting
2 posts, 0 answers
  1. Alfred Ortega
    Alfred Ortega avatar
    193 posts
    Member since:
    May 2005

    Posted 11 Nov 2008 Link to this post

    VS 2008 w/ SP1 Arc Ed
    SQL 2005 Expr
    Table Project
    ProjectID int identity(1,1) PK
    ...other fields...

    Table Task
    TaskID int identity(1,1) PK
    ProjectID int [Foreign Key]
    ... other fields ...

    Steps to Reproduce
    1) Created C# Class Library
    2) Enable OpenAccess on Project
    3) Using the Reverse Engineering Wizard check the one to many box in the Task class so that Project now has a property IList<Task> Tasks.
    4) Build/Compile all is good.
    5) Reopen the reverse engineering Wizard and uncheck the one-to-many box in the Task class so that Project.Tasks no longer exists and regenerate code.
    6) The class definition is correct as no IList<Task> is created - but the mapping file still maintains the tasks definition and fails to build.  You have to manually remove the "tasks" element in the mapping file.

    Al
  2. Jan Blessenohl
    Admin
    Jan Blessenohl avatar
    707 posts

    Posted 15 Nov 2008 Link to this post

    Hi Alfred Ortega,

    We have found and have fixed the problem. The fix will be available in the next patch. Hope you can work with your workaround in the meantime.

    Sincerely yours,
    Jan Blessenohl
    the Telerik team

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