Skip to content

Commit ba9f570

Browse files
authored
Merge pull request #2 from SyncfusionExamples/Correction
added missing aggregate codes
2 parents 36e13bd + e6b55d9 commit ba9f570

File tree

3 files changed

+3
-1
lines changed
  • Binding MS SQL database using CustomAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Data
  • Binding MS SQL database using UrlAdaptor

3 files changed

+3
-1
lines changed

Binding MS SQL database using CustomAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Data/OrderData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public async Task<List<Order>> GetOrdersAsync()
2121
Connection.Open();
2222
// Using SqlDataAdapter, process the query string and fill the data into the dataset
2323
Adapter.Fill(Data);
24-
//Cast the data fetched from Adaptor to List<T>
24+
//Cast the data fetched from Adapter to List<T>
2525
Orders = Data.Tables[0].AsEnumerable().Select(r => new Order
2626
{
2727
OrderID = r.Field<int>("OrderID"),

Binding MS SQL database using UrlAdaptor/Blazor WASM app/MyWebService/MyWebService/Controllers/GridController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public object Post([FromBody] DataManagerRequest DataManagerRequest)
4141
}
4242
int count = DataSource.Cast<Order>().Count();
4343
// Handling Aggregation in Url Adaptor.
44+
IDictionary<string, object> Aggregates = null;
4445
if (DataManagerRequest.Aggregates != null) // Aggregation
4546
{
4647
Aggregates = DataUtil.PerformAggregation(DataSource, DataManagerRequest.Aggregates);

Binding MS SQL database using UrlAdaptor/Blazor Web app/Grid_MSSQL/Grid_MSSQL/Grid_MSSQL/Controllers/GridController.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ public object Post([FromBody] DataManagerRequest DataManagerRequest)
4444
}
4545
int count = DataSource.Cast<Order>().Count();
4646
// Handling Aggregation in Url Adaptor.
47+
IDictionary<string, object> Aggregates = null;
4748
if (DataManagerRequest.Aggregates != null) // Aggregation
4849
{
4950
Aggregates = DataUtil.PerformAggregation(DataSource, DataManagerRequest.Aggregates);

0 commit comments

Comments
 (0)