BrainDump
  Home arrow BrainDump arrow Page 4 - 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 
Mobile Linux 
App Generation ROI 
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 - Build a Business Entity Model with your new Designer


    (Page 4 of 6 )



     

        1. Now that we’ve modified the domain and the notation, let’s use the updated esigner to build a portion of the Business Entity Diagram shown in the ntroduction to this lab.
        2.  Press Ctrl-F5 to run the designer. As before, this will bring up the
          BizEntityDebugging project in a second instance of Visual Studio.
        3. Double-click on the file named Empty.biz in the Solution Explorer to open it. This wlll bring up the empty design surface as before. We want to build the diagram shown below:


        4. To start, drag an Entity shape from the toolbox onto the design surface. Double-click on the New Entity header text on the shape and rename it to Customer. Press Enter to commit the change. 
        5. To indicate that this is a persistent entity, double-click on the text My Type and enter the text Persistent. Press Enter to commit the change.
        6. Right-click on the shape header area and choose Add->Attribute from the context menu.

        7. Type in Name as the name of the new attribute, and press Enter to commit the change.
        8. Use steps similar to the above to create the Account Entity, with Credit Line and Amount attributes.
        9.  In the toolbox, click on the Association tool. Click first on the Customer entity, and then on the Account entity to create the association between Customer and Account.
        10.  Make sure the connector you just added is selected, and press F4 to bring up the property grid. Set the value of the SourceMultiplicity property to 1, to indicate that in our example, each account is associated with a single customer.

                          
        11. Also notice the RelationshipType property that now appears in the property grid. This is a result of adding the new property to the domain model in task 4. Type some text into this property, and notice that it appears on the diagram. This is a result of modifying the designer notation in task 5.
        12. Press Ctrl-S to save the business entity diagram.

    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

    - Internet Explorer 8 Review
    - Nilpo`s Top Windows Add-Ons
    - Beginning Silverlight 2.0 Development using ...
    - Fixing Vista`s Troubles
    - Preparing Windows Images for Mass Deployment
    - The Trouble With Vista
    - Slipstreamed and Unattended Windows Installa...
    - Microsoft Office SharePoint Server
    - Microsoft Office SharePoint Designer
    - Microsoft Windows SharePoint Services 3.0
    - Microsoft Live Mesh Overview
    - XAML Brushes and Silverlight
    - Silverlight and XAML Basics
    - Immortal XP
    - XAML Basics





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