Skip to content

Commit c80ee81

Browse files
committed
Stylecop warnigs fixed and example updated
1 parent 9973988 commit c80ee81

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

src/Examples/Examples.Mvc/Controllers/CustomersController.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,12 @@ public override void OnDataProcessed(ref object data, RequestInfoModel requestIn
5555

5656
public override void OnSearchDataProcessing(ref object data, RequestInfoModel requestInfoModel)
5757
{
58-
var queryable = data as IOrderedQueryable<CustomerViewModel>;
59-
data = queryable.Where(x => x.CustomerID % 2 == 0);
58+
if (requestInfoModel.TableParameters.Search.Value.ToLower() == "even")
59+
{
60+
var queryable = data as IOrderedQueryable<CustomerViewModel>;
61+
data = queryable.Where(x => x.CustomerID % 2 == 0);
62+
requestInfoModel.TableParameters.Search.Value = "";
63+
}
6064
}
6165
}
6266
}

src/JQDT/DataProcessing/DataProcessBase.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,14 @@ internal abstract class DataProcessBase<T> : IDataProcess<T>
1717

1818
private IQueryable<T> processedData;
1919

20+
/// <summary>
21+
/// Occurs when [on data processing event].
22+
/// </summary>
2023
public event DataProcessorEventHandler OnDataProcessingEvent = delegate { };
2124

25+
/// <summary>
26+
/// Occurs when [on data processed event].
27+
/// </summary>
2228
public event DataProcessorEventHandler OnDataProcessedEvent = delegate { };
2329

2430
/// <summary>

0 commit comments

Comments
 (0)