This is a migrated thread and some comments may be shown as answers.

Renaming Entity Sets in the Domain Model designer

3 Answers 35 Views
Design Time (Visual Designer & Tools)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Henk
Top achievements
Rank 1
Henk asked on 13 Oct 2010, 03:05 PM
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.

3 Answers, 1 is accepted

Sort by
0
Henk
Top achievements
Rank 1
answered on 15 Oct 2010, 12:23 PM
Hi,

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

See the extra post below.
0
Henk
Top achievements
Rank 1
answered on 15 Oct 2010, 01:39 PM
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.
0
Accepted
Petko_I
Telerik team
answered on 15 Oct 2010, 06:38 PM
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
Tags
Design Time (Visual Designer & Tools)
Asked by
Henk
Top achievements
Rank 1
Answers by
Henk
Top achievements
Rank 1
Petko_I
Telerik team
Share this question
or