Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public async Task<List<Order>> GetOrdersAsync()
Connection.Open();
// Using SqlDataAdapter, process the query string and fill the data into the dataset
Adapter.Fill(Data);
//Cast the data fetched from Adaptor to List<T>
//Cast the data fetched from Adapter to List<T>
Orders = Data.Tables[0].AsEnumerable().Select(r => new Order
{
OrderID = r.Field<int>("OrderID"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public object Post([FromBody] DataManagerRequest DataManagerRequest)
}
int count = DataSource.Cast<Order>().Count();
// Handling Aggregation in Url Adaptor.
IDictionary<string, object> Aggregates = null;
if (DataManagerRequest.Aggregates != null) // Aggregation
{
Aggregates = DataUtil.PerformAggregation(DataSource, DataManagerRequest.Aggregates);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public object Post([FromBody] DataManagerRequest DataManagerRequest)
}
int count = DataSource.Cast<Order>().Count();
// Handling Aggregation in Url Adaptor.
IDictionary<string, object> Aggregates = null;
if (DataManagerRequest.Aggregates != null) // Aggregation
{
Aggregates = DataUtil.PerformAggregation(DataSource, DataManagerRequest.Aggregates);
Expand Down