Applying the C# and .Net WCF profiles

When you create a UML model, you can apply a profile to the model to control how the transformation generates code or artifacts. Adding a profile enables you to model additional elements that you cannot model with UML elements. To see a list of potential problems that can occur in the code that the transformation generates, apply the profile to the source model, apply the appropriate stereotypes to the model elements, and run the model validation feature.

About this task

You must have a model open in the Modeling perspective.

To apply the transformation profile:

Procedure

  1. From the Deployed Profile list, select the appropriate profile.
  2. In the Properties view, on the Profiles page, click Add Profile.
  3. In the Select Profile dialog box, click Deployed Profile.
  4. From the Deployed Profile list, select C# or .Net WCF.
  5. Click OK.
  6. Click File > Save.

Results

After you apply the C# or .Net WCF profile, you can apply the stereotypes in this profile to the model elements.

Feedback