blob: 6c7fb3266c82f800859919e118513e02f375e337 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="abstract" content="This section provides instructions to add properties for an entity and complex type."/>
<meta name="description" content="This section provides instructions to add properties for an entity and complex type."/>
<link rel="stylesheet" type="text/css" href="../css/documentation.css"/>
<title>Adding Properties</title>
<!--[if lte IE 7]><style>
.codeblock{
overflow:visible;
}</style><![endif]-->
</head>
<body class="" id="loio8777b42c12bc4796a5898dbba6feb3fb">
<div id="wrapper"><div id="container">
<h1 class="title topictitle1">Adding Properties</h1>
<div class="body taskbody"><p class="shortdesc">This section provides instructions to add properties for an entity and complex
type.</p>
<div class="section context" id="loio8777b42c12bc4796a5898dbba6feb3fb__context_N10015_N10012_N10001"><div class="tasklabel"><h2 class="sectiontitle tasklabel">Context</h2></div>
<div class="note note" id="loio8777b42c12bc4796a5898dbba6feb3fb__note_N10015_N10012_N10001"><span class="notetitle">Note</span> A key property is automatically added to the entity
when the entity is created.</div>
<p class="p"/>
</div><div class="tasklabel"><h2 class="sectiontitle tasklabel">Procedure</h2></div><ol><li class="li step" id="loio8777b42c12bc4796a5898dbba6feb3fb__step_N10025_N10022_N10012_N10001"><span class="ph cmd">Right click on the header of the <span class="ph emphasis emphasis">Entity Type</span> of the OData
Model Element and select <span class="ph emphasis emphasis">Add Properties</span> and select the
property to be added of your choice: </span><ul class="ul choices" id="loio8777b42c12bc4796a5898dbba6feb3fb__choices_ufw_vpv_sp"><li class="li choice">You can also create similar properties by selecting the existing
property and pressing the <em class="ph i">Enter</em> key.</li>
</ul>
</li>
</ol><p class="li stepsection">The properties have different icons as shown in the table below:
<div class="tablenoborder"><table summary="" id="loio8777b42c12bc4796a5898dbba6feb3fb__table_fzv_lwf_xj" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap">Table 1:
Properties</span></caption><thead class="thead" align="left"><tr class="row"><th class="entry" valign="top" width="21.50537634408602%" id="d66972e45">Properties</th>
<th class="entry" valign="top" width="78.49462365591397%" id="d66972e47">Icons</th>
</tr>
</thead>
<tbody class="tbody"><tr class="row"><td class="entry" valign="top" width="21.50537634408602%" headers="d66972e45 ">Key </td>
<td class="entry" valign="top" width="78.49462365591397%" headers="d66972e47 "><img class="image" id="loio8777b42c12bc4796a5898dbba6feb3fb__image_bry_s1k_tp" src="d5b2d0a90b884f7a9cb96d5db1e489a2.image"/></td>
</tr>
<tr class="row"><td class="entry" valign="top" width="21.50537634408602%" headers="d66972e45 ">Simple</td>
<td class="entry" valign="top" width="78.49462365591397%" headers="d66972e47 "><img class="image" id="loio8777b42c12bc4796a5898dbba6feb3fb__image_hnw_bbk_tp" src="21ddbd2392ec4be0b10e7fe4e879a3d0.image"/></td>
</tr>
<tr class="row"><td class="entry" valign="top" width="21.50537634408602%" headers="d66972e45 ">Complex</td>
<td class="entry" valign="top" width="78.49462365591397%" headers="d66972e47 "><img class="image" id="loio8777b42c12bc4796a5898dbba6feb3fb__image_ggv_1ck_tp" src="264a88124808438bb832623e5959df06.image"/></td>
</tr>
<tr class="row"><td class="entry" valign="top" width="21.50537634408602%" headers="d66972e45 ">Navigation</td>
<td class="entry" valign="top" width="78.49462365591397%" headers="d66972e47 "><img class="image" id="loio8777b42c12bc4796a5898dbba6feb3fb__image_k1x_qck_tp" src="894f07f1e567433da521636073c398a2.image"/></td>
</tr>
</tbody>
</table>
</div>
<div class="note note" id="loio8777b42c12bc4796a5898dbba6feb3fb__note_N100C9_N10043_N10022_N10012_N10001"><span class="notetitle">Note</span> The navigation property
will be added under the Navigation Properties region. </div>
<img class="image" id="loio8777b42c12bc4796a5898dbba6feb3fb__image_h5l_1dk_tp" src="7ecca138e0cd4536a9d4b8685ab4801e.image"/></p><ol start="2"><li class="li step" id="loio8777b42c12bc4796a5898dbba6feb3fb__step_N100D7_N10022_N10012_N10001"><span class="ph cmd">Select a Property to view and edit its properties in the Properties View.</span>
<div class="note note" id="loio8777b42c12bc4796a5898dbba6feb3fb__note_N100E6_N100E3_N100DB_N10022_N10012_N10001"><span class="notetitle">Note</span> To delete a property,
right click on the property and select <span class="ph emphasis emphasis">Delete</span></div>
</li>
</ol></div>
<div class="related-links">
<div class="relinfo"><div class="relinfotitle ">Related Information</div>
<div><a class="link" href="a3997075e60b4dd3b3e47a8126070414.html" title="Understanding the OData model element.">Working with the OData Model Element</a></div>
</div>
</div></div></div>
</body>
</html>