BrainDump
  Home arrow BrainDump arrow 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  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
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


    (Page 1 of 6 )

    Last week, we generated and built a business entity designer by way of introducing you to building a Domain Specific Language with DSL tools. This week, we'll run the designer and look at its features. We'll also learn how to do tasks such as adding a new property, introducing notation for the new property, and more.

    Run the Business Entity Designer  

      1. Now that the designer is generated and built, let’s take a quick look at some of its features.
      2.  Press Ctrl-F5 to run the designer. This will bring up a second instance of Visual Studio with a project open named “BizEntityDebugging”.
      3. Notice that there is a file named “Empty.biz” included in this project. Double-click to open that file in your designer. Your designer will look like this:

      4. To get a feel for how the designer works, drag two Entity shapes from the toolbox onto the blank diagram surface. To do this, left-click on the Entity tool, hold the mouse button down and drag to the document area, and release. 

      5.  Click on the Association tool in the toolbox. Click on the first entity shape you added, then on the second shape to draw an association line between them. The result should look something like this:

      6. Notice that our notation defines a shape which corresponds to an Entity in the domain model, and a connector line which corresponds to an association between entities.

      7. Feel free to explore the target designer a little more at this point. Some things to
        try:

        1. Double-click on the NewEntity text in the shape header to rename it using in-place editing. 

        2. Right-click on the shape header and select Add->Attribute from the context menu to add a new attribute to the shape. Note that according to our notation, attributes on entities are placed in a compartment within the entity shape.

        3. Click on the association line, and set the SourceMultiplicity and/or TargetMultiplicity properties from the property grid. Note that the labels on the diagram lines are updated to match.

      8. When you’re finished, close the designer by selecting File->Close from the main menu. When prompted, do NOT save changes to the “Empty.biz” file, because we are going to modify the domain model in the next task, which will result in a change to the format of this file.

      9. Close the second IDE by selecting File->Exit from the main menu.

    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

    - Introduction to Office Live Workspace
    - Using MS Excel for One-way Analysis of Varia...
    - Comparing Data Sets Using Statistical Analys...
    - Import Blogger Posts into WordPress Using Wi...
    - Download WordPress from an FTP Server and Ru...
    - Install and Run WordPress in XAMPP Local Host
    - What Windows 7 Brings to the Table
    - Virtualization and Sandbox Detection
    - Advanced Firebug Techniques in Windows XP Ho...
    - Editing CSS with Firebug in Windows XP Home
    - Using Firebug in Windows XP Home
    - Migrating to Exchange Server 2007
    - Using System Restore on a Non-Bootable PC
    - Finding Logged on Users and More Scripting S...
    - Developing Macro Commands in MS Excel





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    Stay green...Green IT