Renaming Entity Sets in the Domain Model designer

4 posts, 1 answers
  1. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 13 Oct 2010 Link to this post

    Hi,

    If I rename an Entity Set in the OpenAccess Model Explorer Window I expect the name of the Entity Set to change in the generated EntityDiagram.cs file. But I don't see the changed name in the EntityDiagram.cs file. When I change the name manually in the EntityDiagram.cs file it is overwritten with the old generated name if I make changes to the model.
    How can I make the change permanent?

    Kind Regards.
  2. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 15 Oct 2010 Link to this post

    Hi,

    I see it is (partially) fixed in the latest internal build (13-10-2010)
    Thanks!

    See the extra post below.
  3. DevCraft banner
  4. Henk
    Henk avatar
    113 posts
    Member since:
    Apr 2006

    Posted 15 Oct 2010 Link to this post

    Hi,

    I thought the problem was fixed but it moved to another place.
    in the generated EntityDiagram.cs file the problem is fixed. I see the renamed Entity Sets as IQueryables with the new names.
    But I have still a problem when I create an OpenAccessDomainService.
    In my Silverlight application in the WebContext the EntitySets have stil the old (generated) names.

    Kind Regards.
  5. Answer
    Petko_I
    Admin
    Petko_I avatar
    184 posts

    Posted 15 Oct 2010 Link to this post

    Hello Henk,

    As you have noticed the EntityDiagrams.cs file is regenerated whenever you introduce a change in your model and save it. This file is auto generated by a text template and there is no point in trying to change it if you will modify your domain model. However, changing the Entity Set name in the OpenAccess model explorer should update the contents of the generated file. This issue is fixed as you have noticed. 

    Regarding the OpenAccessDomainService, we have verified the error concerning the synchronization between the names generated in the context class and the domain service one. This issue will be fixed for the upcoming Q3 release.  What you can now do to resolve the problem is change the entity set name in the text template. Locate the line that assigns a string of entity set names and edit these names.

    string queriableClassNamesInput = "Products;Regions;Shippersss;Suppliers;Territories;";


    Your Telerik points have been updated for this valuable input. Do not hesitate to contact us if you find anything disturbing.


    Kind regards,
    Petko_I
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top