index > Visual Studio Team System - Domain-Specific Language Tools > How to make a Domain Relationship visible in a class's shape on D...

How to make a Domain Relationship visible in a class's shape on D...


Hi,

I whant to add a reference from Relationship to Domain class. As I undestand to to that I have to see my Domain Relationship in a class's shape on a DSL designer surface. Could somebody help me?

Evgeny

Evgeny Popov

I found some way: open .dsldefinition file in Xml Editor add <BaseRelationship> to Domain Relationship and after that it will appear as a class. So I guess I could add a reference in Xml editor and affect will be the same. The problem is: designer does not support making relationship for Domain Relationship when it's shown like link between Domain Classes and also does not allow you to make inheritance on a designer. So when you jhave done it manually and designer try to show it, it has to shows Domain Relationship in a class shape.

PS. Also I found some strange behaivor. I was not able to set base relation using Property Window - it shows me error message about sourceRole is not defined. But when I have done it manually every thing is fine and validat is passed successfully.

Evgeny Popov

Evgeny

Yes, these are known limitations with the DSL Designer in the June CTP. You have to resort to the XML editor as you have discovered. This will all be fixed in the forthcoming version.

Steve Cook MSFT
reply 3

You can use google to search for other answers

 

More Articles

Join the World's Largest User Group on Software Factories in VS 2...
Background Picture
Multi-User Capability
Suggestion - Context Menu: Override Behavior or Rule
November release Designers compile errors
Own shape decorators
Migrating to May CTP: Text Template Problem
How to add Text template and make available in project
What can be created with DSL?
N-ary Relationships
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

TextDecorators in SwimLaneShapes
Popup dialog in DSL
Toolswindows out of control.
Designer code templates - where are they?
Is there documentation for the T4 engine…
Enterprise Library
How create an Emf file ? Extending notat…
Project type
My view on views, Repositories, Multi-us…
Migrating .diagram files to V1 (Septembe…
Stability of Modeling API
GAC support in Templating Engine (Featur…
How to add or remove template files in t…
unable to find common parent for view fi…
How to remove non application menu-items…

Hot Articles

Project type
Dynamically Create Links OnAttributeChan…
March CTP DSL uninstall / VS (RC) issue
Bug in Edit Attributes editor
Cannot add Reference shape to DSL Diagram
How to migrate / implement CustomStorage…
How To Navigate over Links
guidLogicalView
Comments and CommentShapes
Shapes that are not directly related to …
Cannot add DSL diagram into a Web Project
Serialize reference type class member
I get a null reference exception when ad…
Resources: Domain Specific Language (DSL…
How to set the tooltip for the shapes an…

Recommend Articles

User Domain Model Displayed as XML
filtering reference dropdowns in the pro…
Documentation for Microsoft.VisualStudio…
Context menu item localization
How to reliably identify a new loaded mo…
How it the class mentioned in directivep…
Finding the associated presentation elem…
Why the f$%^&* does the DSL tools as…
How to create multiple diagrams associat…
Where do I place text for a captionId?
"DSL DM -> DD" for November…
What is the best way to present 3 value …
problem with connector
Welcome to the Domain-Specific Language …
How-to: create a custom tool that runs d…