SignalRHierarchicalDataSourceSchemaBuilder
Methods
Model(System.Action)
Configures Model properties
Parameters
configurator - System.Action<SignalRHierarchicalDataSourceModelDescriptorFactory>
Example
.DataSource(dataSource => dataSource
.SignalR()
.Transport(tr => tr
.Promise("hubStart")
.Hub("hub")
.Client(c => c
.Read("read")
.Create("create")
.Update("update")
.Destroy("destroy"))
.Server(s => s
.Read("read")
.Create("create")
.Update("update")
.Destroy("destroy")))
.Schema(schema => schema
.Model(model => model
.Id("ID")
.HasChildren("hasChildren")
)
)
)
Aggregates(System.String)
Sets Aggregates option.
Parameters
aggregates - System.String
Aggregates option
Aggregates(System.Func)
Sets JavaScript function which to return aggregates.
Parameters
handler - System.Func<Object,Object>
Groups(System.String)
Sets Groups option.
Parameters
groups - System.String
Groups option
Groups(System.Func)
Sets JavaScript function which to return groups.
Parameters
handler - System.Func<Object,Object>
Data(System.String)
Sets Data option.
Parameters
data - System.String
Data option
Data(System.Func)
Sets JavaScript function which to return data.
Parameters
handler - System.Func<Object,Object>
Total(System.String)
Sets Total option.
Parameters
total - System.String
Total option
Total(System.Func)
Sets JavaScript function which to return total.
Parameters
handler - System.Func<Object,Object>
Errors(System.String)
Sets Errors option
Parameters
errors - System.String
Errors option
Errors(System.Func)
Sets JavaScript function which to return the errors.
Parameters
handler - System.Func<Object,Object>
Parse(System.Func)
Sets JavaScript function which to return data.
Parameters
handler - System.Func<Object,Object>
Type(System.String)
Sets Schema Type option
Parameters
type - System.String
Type option