Use together with visual. Studio. NET (1)

Source: Internet
Author: User
Recently, due to work needs, I took some time to learn about. net. What I feel most about it is. net has some unique characteristics in enterprise architecture, including. the Enterprise templates provided by net greatly simplify enterprise application development.

For enterprise-level development applications, I believe everyone will think about modeling. How to Apply Modeling in vs. NET is particularly important in vs. NET development. During this time, I will try
Several tools, including visio.2003.enterprise. Edtion, VISAUL. UML. v.3.02, etc.
ProgramIn terms of development, Rose is too huge. What xde does not currently support vs2003. ^_^), Visio2003 Chinese version can be combined with vs. net, but its
The modeling function of UML is relatively poor, and the running speed of visual. UML is not flattering. Yesterday I saw some forums talking about boaland's
Together. For. VISAUL. Net was installed with a try. It feels really good.

Some of my experiences are not exclusive and I am writing it out to study and discuss with you. In a hurry, please criticize and correct your mistakes. If you need to reprint the data, indicate the source. If you need questions, contactMe. Thanks again to xalion's 51delphi website. Without his guidance and help, I believe there is no such thing.Article.

Note: The runtime environment in this article is Visual Studio. NET 2003 and Borland.
Together edition for microsfot Visual Studio. NET Version 1.0.

1. Borland together edition for Microsoft Visual Studio. NET Installation

Together is a cross-platform UML tool. I chose Borland together.
Edition for Microsoft Visual Studio. NET version
Version 1.0. From readme's perspective, the last update time is August 28,2003. You can visit Borland's website.Download.Registration Machine. This registration machine must be supported by JDK. V.1.3. Make sure that your machine is installed with a Java running package. There is nothing to say about the installation process. Start vs. net. If the installation is successful, you will see the following figure (Figure 1 ):

Figure 1: Installation interface of Boland together edition for Microsoft Visual Studio. NET

Then run: Registry together
. Net menu command to register the generated registration number. If the registration fails, you can use Licence
The managerment menu command will delete the invalid registration number and generate it again (I also failed for the first time, and then re-generate a registration code to register successfully ).

2. Introduction to Borland together edition for Microsoft Visual Studio. NET

Borland together edition
Microsoft Visual Studio
The main functions of. Net include the following: UML modeling, two-wayCodeGenerate, mode support, HTML document generation, import, and XML format.

The required software platform, of course, must first be installed on your machine and successfully run Microsoft Visual
Studio. NET 2003 andProgramming LanguageYes C #
. Net. In addition, the hardware demand is not too high: pentiumiii/500 MHz, Minimum Memory 512 M, 30 m disk space, svga
1024x768 and the operating system that requires w2k + SP2 or WINXP professional.

Borland together edition for Microsoft Visual
Studio. NET is not a standalone program, but is integrated into the Vs. NET environment. It consists of three parts: The first part is the model.
View (Model View, Figure 2), digram view (Chart view, figure 4), and attribute window (Figure 3 ).

Figure 2: Model View Figure 3: Properties window

Figure 4: Chart view

3. apply together through an instance

The following example shows how to apply together in the Vs. NET environment. This example is quite simple. It imitates and implements
The implementation model of audio and video rental stores. There are two major actor involved: a clerk and a customer. The clerk manages the live video recordings in the store, while the customer manages the live video recordings.
. First, create a new project file: video store (figure 5) in vs. net ).

Figure 5: Create a vs. Net project file

Then vs creates a new project file named video.
Store. Select View> together vs. Net Model
The View menu command opens a module view (this is a default view generated by together for the newly created project file, figure 6 ):

Figure 6: modul view in the default Project

The following figure shows a user use case digoal. Select default> video_store> Add> Other digoal (figure 7 ):

Figure 7: create a user use case diagram) 

Together will pop up a dialog box (Figure 8). Enter video store use case to create a use case map:

Figure 8: create a user Diagram

Note: If you want to open a previously created project file and want to apply together,
Select "together vs. Net" in "Project Manager ".
Support, a dialog box is displayed (Figure 9). Select it and confirm to open the existing module File (Figure 10 ).

Figure 9. Open together for an existing project Figure 10: apply together to an existing project

After the creation is successful, select the use case chart. A dedicated graph creation tool is displayed in the left-side toolbox, Including actor and use.
Case, communicates, extends, Des, generalization, System
Boundary, pattern, note, note
Link and other items, we select an actor, add it to the use case diagram, and change its name to clerk to represent the sales person.

You can double-click the icon or press the F2 key to change the name. When you select a chart, there will be a border around it. You can also drag the border to adjust the image size.

Select system boundary
Button, create a system boundary in the figure, rename it as "Inventory System", and use "use case
Button, create two use cases in the system boundary. One is "find item by keywords" and the other is "find item
The keyword used to find the video or the title used to find the video.

Select "communicates button", select the actor (clerk) in the figure, and drag it to use case (fig. 11 ):

Figure 11: Example

Select actor (clerk) and press F4 to open the Properties window on the right (by default) and select general-
> In the dialog box on the Right of stereotype (Figure 12), a dialog box is displayed. Select the role's prototype. Here you can select Manager (representing the manager,
Figure 13 ):

Figure 12: Clerk attribute window Figure 13: Define the stereotype of clerk

Add a new use case rent item to System
Boundery, add an actor-customer, and use the communicates link to connect the customer and rent
Item. The final use case diagram (Figure 14 ):

Figure 14: use case diagram of rental videotape

Come here first. It has been written on and off for two days. I'm afraid it has deteriorated. Well, in subsequent articles, I will write the together application. Thank you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.