How to: Add a Custom Property

You can add custom properties to the model by using the Property Editor. You can access these properties in code to retrieve information such as connection strings and other data at run time.

To add a custom property

  1. In the BDC Explorer, select the node that represents the model element to which you want to apply a custom property.

  2. On the View menu, click Properties Window.

  3. In the Properties window, select the Custom Properties property, and then click the ellipsis button (ASP.NET Mobile Designer ellipse).

    The Property Editor dialog box appears.

  4. In the Property Editor dialog box, double-click the text box in the Name column, type the name of the property, and then press ENTER.

  5. For the Type field of the custom property, select the appropriate data type.

  6. For the Value field of the custom property, type a value, and then press OK.

Community Additions