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

Defines the fluent interface for configuring CRUD operations in the SignalR DataSource.

Definition

Constructors

Initializes a new instance of the SignalRCrudOperationsBuilder class.

C#
public SignalRCrudOperationsBuilder(IDictionary<string, object> crudOperation)
Parameters:crudOperationIDictionary<string, object>

The CRUD operations list

Methods

The name of the method of the SignalR hub responsible for creating data items.

C#
public SignalRCrudOperationsBuilder Create(string method)
Parameters:methodstring

Method name

Returns:

SignalRCrudOperationsBuilder

A SignalRCrudOperationsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DataSource&lt;OrderViewModel&gt;()
.Name("ds")
.SignalR(s=&gt;s.Transport(t=&gt; {
t.Client(c =&gt; c.Create("methodName"));
}))
)

The name of the method of the SignalR hub responsible for destroying data items.

C#
public SignalRCrudOperationsBuilder Destroy(string method)
Parameters:methodstring

Method name

Returns:

SignalRCrudOperationsBuilder

A SignalRCrudOperationsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DataSource&lt;OrderViewModel&gt;()
.Name("ds")
.SignalR(s=&gt;s.Transport(t=&gt; {
t.Client(c =&gt; c.Destroy("methodName"));
}))
)

The name of the method of the SignalR hub responsible for updating data items.

C#
public SignalRCrudOperationsBuilder Update(string method)
Parameters:methodstring

Method name

Returns:

SignalRCrudOperationsBuilder

A SignalRCrudOperationsBuilder instance for method chaining.

Example:
C#
@(Html.Kendo().DataSource&lt;OrderViewModel&gt;()
.Name("ds")
.SignalR(s=&gt;s.Transport(t=&gt; {
t.Client(c =&gt; c.Update("methodName"));
}))
)