BrainDump
  Home arrow BrainDump arrow Page 2 - Build a Domain Specific Language with DSL ...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Dedicated Servers 
Moblin 
JMSL Numerical Library 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
BRAINDUMP

Build a Domain Specific Language with DSL Tools concluded
By: MSDN Virtual Labs
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 5
    2006-01-26

    Table of Contents:
  • Build a Domain Specific Language with DSL Tools concluded
  • Add a New Property
  • Introduce notation for the new property
  • Build a Business Entity Model with your new Designer
  • Generate a HTML report of your Model with your new Designer
  • Generate a HTML report of your Model with your new Designer

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Build a Domain Specific Language with DSL Tools concluded - Add a New Property


    (Page 2 of 6 )

    Suppose we decide that the current model of the BizEntity domain is inadequate. In this task we will extend the model add a new property to a class in the domain model. In fact, we are going to add a new property to the “Association” relationship. The domain model designer provides the facility to show relationships as though they were themselves classes, in order to be able to add properties to them. You can also create relationships to relationships and inherit from relationships, although we won’t do either in this lab.

    1. Click on the BizEntity.dmd tab to take you back to the domain model designer. At the top of the diagram you should see a brown class called “Association”. It is brown because this is a relationship, not a normal class. Open up the Association shape by clicking on the little “+” sign.
    2. Invoke the View->Toolbox command from the main menu to bring the Toolbox window back into view.
    1. Notice that the “Association” class defines two properties,  "SourceMultiplicity” and “TargetMultiplicity”, which you have already seen show up at the ends of association lines in the Business Entity designer.
    2. Left-mouse on the value property tool in the toolbox, drag to the main body of the Association class (the brown part), and release the mouse button. A new property called “Property1” should appear in the flap.


    3. Click on Property1 to select it. You should see that it is selected in the property
      browser at the lower right of Visual Studio. In this browser, find the Name property under the Misc category, and edit it to read RelationshipType.


    4. Press Enter to commit the change. The new name should be shown on the diagram.

    5. Save the BizEntity.dmd file.

    More BrainDump Articles
    More By MSDN Virtual Labs


       · We hope you found this article from MSDN Labs to be entertaining and informative....
       · I think this is useful work,good done!Only one thing... where can I find the file...
       · Click on the "author bio" and you will find a link that will take you to the MSDN...
       · thanks for reply, sorry i didnt find any link like "author bio" , can you give me...
     

    BRAINDUMP ARTICLES

    - XAML Brushes and Silverlight
    - Silverlight and XAML Basics
    - Immortal XP
    - XAML Basics
    - Microsoft Surface
    - Making Your First Active X Control in Visual...
    - Codes and Packages in Microsoft Project 2007
    - Windows 7: Rumors and Demos
    - XP SP3 Why Me?
    - Breaking Up Your Work in Microsoft Project
    - Breaking Work into Task-Sized Chunks
    - Putting Microsoft`s Worldwide Telescope Unde...
    - Handling Multiple Contracts with Indigo
    - Cleaning Out Your Data in XP
    - Multiple Service Contracts and Indigo





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway