index > Visual Studio Team System - Domain-Specific Language Tools > Adding ModelElements to 0..* relationships through a CollectionEd...

Adding ModelElements to 0..* relationships through a CollectionEd...


It is possible to use the propertygrid to designate the reference value of 0..1 relationships (selection from a dropdown), but is it possible to added ModelElements to the many end of the relationship using a CollectionEditor?

Currently the Many end doesnt actually show up in the propertygrid (as I believe its expected to be manipulated via drag and drop through the designer), but if one didnt wish to have a graphical representation for this, could it be done purely through the PropertyGrid?

An example of the desired behavior is SQL Server Enterprise Manager, designing the table.

You can add Fields to a Table through the 'designer', but Foreign Keys are added through a dialog (eg, CollectionEditor), as they have no graphical representation, otherwise they would clutter the UI.

Any tips?

Thanks!

Nimble

Yes, it could be done through the property grid if you wanted to write your own TypeConverter, UITypeEditor and customize our PropertyDescriptor.

Howie Hilliker MSFT Lead Writer
reply 2

You can use google to search for other answers

 

More Articles

changing defaults in inherited propeties
How to move shapes within diagram programmatically???
IsSerializing property
Custom Geometry Shape
Multiple DSL's using the same file extension
class factory
How to access the Session in subdomain?
Category feedback
Serialize reference type class member
Load Data designed in another model file
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Defining custom multiplicities
Own shape decorators
Adding ModelElements to 0..* relationshi…
Error creating DSL setup project (empty …
Why must the ShapeField's value be assoc…
Controlling and detecting what elements …
TextTemplatingFileGenerator now fails to…
Multiple DSL's using the same file exten…
When will a release be made available fo…
Multiplicity Value Property
How access to a connector property
property graphical representation
Come join the largest group on the DSL a…
November DSL Toolkit Release: where are …
Opening an existing DSL in a fresh insta…

Hot Articles

How to manually process template in June…
CompartmentShapeMap
Making a reference from a connector class
How to clip shape text?
.tt files shouldn't be copyrighted
Custom Command improvements
Deployment - template doesn't appear und…
protected internal
More than one Diagram / File - Extension…
Error Message: Cannot find custom tool …
Beginner question about the use of DSL T…
Opening an existing DSL in a fresh insta…
Error with DSL Project Setup
"Static" Swimlanes
Cannot create a new Store

Recommend Articles

Come Join the World's Largest Software F…
Unable to intercept double click on deco…
How to respond to and propagate changes
Atrributes with particular properties
Experimental UI - show and hide shapes a…
Administrator priviliges required
Installing DSL Tools Nov CTP Release
Re: Have problem for the DSL walk-throug…
Reference relationships without graphica…
No 'add new...' on Compartment
Name of new elements
Dynamically Create Links OnAttributeChan…
Custom connect code not getting called
How to migrate / implement CustomStorage…
Change name of Extension & name of t…