New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
[Obsolete]
public class ODataEntitySet

Inheritance: objectODataEntitySet

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

A container (collection) class for Entities of the same type.

C#
public ODataEntitySet()

A container (collection) class for Entities of the same type.

C#
public ODataEntitySet(string name, string type)
Parameters:namestring

The name of the EntityCollection

typestring

ODataEntityType that is contained

A typical exaple is the Name of the collection to be the plural of the EntityType. For example EntityType Category is often mapped to a container called Categories.

Example:
C#
<telerik:RadMenu runat="server" ID="RadTreeView2" PersistLoadOnDemandItems="true" >
<WebServiceSettings Path="http://services.odata.org/OData/OData.svc">
<ODataSettings ResponseType="JSONP" InitialContainerName="Categories">
<Entities>
<telerik:ODataEntityType Name="Category" DataValueField="ID" DataTextField="Name" NavigationProperty="Products" />
<telerik:ODataEntityType Name="Product" DataValueField="ID" DataTextField="Name" />
</Entities>
<EntityContainer>
<telerik:ODataEntitySet  EntityType="Category" Name="Categories" />
<telerik:ODataEntitySet  EntityType="Product" Name="Products"  />
</EntityContainer>
</ODataSettings>
</WebServiceSettings>
<DataBindings>
<telerik:RadMenuItemBinding ExpandMode="WebService" />
</DataBindings>
</telerik:RadMenu>

Properties

ODataEntityType that is hold by the collection.

C#
public string EntityType { get; set; }

The name of the Entity Collection.

C#
public string Name { get; set; }

It is necessery that the Name property matches completely the NavigateProperty (if set) on the ODataEntityType contained by the collection.