blob: c401e248ca1d2142c715e696556fb4ee434e97ee [file] [log] [blame]
<html lang="en-us">
<head>
<title>Creating an Entity Type</title>
</head>
<body class="" id="loio12526533ccd3464b87542a9527c1b780">
<div id="wrapper"><div id="container">
<h1 class="title topictitle1">Creating an Entity Type</h1>
<div class="body taskbody"><p class="shortdesc">This section guides you to create an Entity Type</p>
<div class="section context" id="loio12526533ccd3464b87542a9527c1b780__context_N10015_N10012_N10001"><div class="tasklabel"><h2 class="sectiontitle tasklabel">Context</h2></div>
<p class="p">The Entity Type describe the structure of data in an OData Model. Entity types
represent a specific type of data, for example an item or a concept. Entity type
OData Model Element comprises of:</p>
<ul class="ul" id="loio12526533ccd3464b87542a9527c1b780__ul_flz_dzz_fj"><li class="li">Entity name-Unique name</li>
<li class="li">Entity Sets</li>
<li class="li">Properties<ul class="ul" id="loio12526533ccd3464b87542a9527c1b780__ul_owq_mtw_yj"><li class="li">Key, which can be defined by one or more properties (Is Key)</li>
</ul>
</li>
<li class="li">Navigation Properties (optional to navigate between associations)</li>
</ul>
<p class="p">To create an entity type in your project, proceed as follows:</p>
<ol class="ol" id="loio12526533ccd3464b87542a9527c1b780__ol_sz1_jzz_fj"><li class="li">Select <span class="ph pname">Entity Type</span> under <span class="ph pname">Objects</span>in the palette,
press and hold down the left mouse button, drag the element onto the graphical
editor region.</li>
<li class="li">Drop the element by releasing the mouse button. A graphical representation of
the entity type (OData Model Element) is created on the OData Model
Editor.<p class="p">Alternatively, you can also click on the Entity Type in the
palette and click inside the OData Model Editor to create the entity
type.</p>
<div class="note note" id="loio12526533ccd3464b87542a9527c1b780__note_N10048_N10042_N10032_N10012_N10001"><span class="notetitle">Note</span> Every new
entity will have a unique name at the time of creation.</div>
<p class="p">The Entity
name field is in editable status immediately.</p>
</li>
<li class="li"> Enter a name for the Entity and press "Enter" in the keyboard or click outside the entity
name field. <p class="p">The following elements are updated for the selected entity with
new entity name:</p>
<ul class="ul" id="loio12526533ccd3464b87542a9527c1b780__ul_zgj_5zz_fj"><li class="li">Entity Set</li>
<li class="li">Key Property ID</li>
</ul>
<p> </p>
<img src="CET.png" alt="" style="width:304px;height:228px"/>
<p> </p>
<div class="note note" id="loio12526533ccd3464b87542a9527c1b780__note_N1006E_N10066_N10054_N10036_N10015_N10012_N10001"><span class="notetitle"><b>Note</b></span> Renaming the
entity type will rename the corresponding entity sets, navigation
properties and the default key properties.</div>
</li>
</ol>
</div></div>
</div></div>
</body>
</html>