An EntityType defines the structure of an entity in OData. It specifies the entity’s properties (like fields/columns), key fields, and relationships. Think of it like a class or schema that describes the shape of data within an EntitySet.
<EntityType Name=”Product”>
<Key>
<PropertyRef Name=”ProductID” />
</Key>
<Property Name=”ProductID” Type=”Edm.Int32″ Nullable=”false” />
<Property Name=”ProductName” Type=”Edm.String” />
</EntityType>