You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updated .NET Core and EF Core versions from 3.0 to 3.1
Updated DatatableModels with reference to DataTables "Server-side processing" Manual for v1.10.21
Modified EF LINQ calls to not pull all results for in-memory processing (verified by SQL Server Profiler).
Modified code to utilize DtResult object.
Copy file name to clipboardExpand all lines: src/jQueryDatatableServerSideNetCore/Models/AuxiliaryModels/DatatableModels.cs
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -33,11 +33,18 @@ public class DtResult<T>
33
33
/// <summary>
34
34
/// The data to be displayed in the table.
35
35
/// This is an array of data source objects, one for each row, which will be used by DataTables.
36
-
/// Note that this parameter's name can be changed using the ajaxDT option's dataSrc property.
36
+
/// Note that this parameter's name can be changed using the ajax option's dataSrc property.
37
37
/// </summary>
38
38
[JsonProperty("data")]
39
39
publicIEnumerable<T>Data{get;set;}
40
40
41
+
/// <summary>
42
+
/// Optional: If an error occurs during the running of the server-side processing script, you can inform the user of this error by passing back the error message to be displayed using this parameter.
/// Add this data property to the row's dt-tag tr node allowing abstract data to be added to the node, using the HTML5 data-* attributes.
63
-
/// This uses the jQuery data() method to set the data, which can also then be used for later retrieval (for example on a click event).
69
+
/// Add the data contained in the object to the row using the jQuery data() method to set the data, which can also then be used for later retrieval (for example on a click event).
64
70
/// </summary>
65
71
[JsonProperty("DT_RowData")]
66
72
publicvirtualobjectDtRowData=>null;
73
+
74
+
/// <summary>
75
+
/// Add the data contained in the object to the row dt-tag tr node as attributes.
76
+
/// The object keys are used as the attribute keys and the values as the corresponding attribute values.
77
+
/// This is performed using using the jQuery param() method.
78
+
/// Please note that this option requires DataTables 1.10.5 or newer.
79
+
/// </summary>
80
+
[JsonProperty("DT_RowAttr")]
81
+
publicvirtualobjectDtRowAttr=>null;
67
82
}
68
83
69
84
/// <summary>
@@ -147,7 +162,7 @@ public class DtColumn
147
162
publicboolOrderable{get;set;}
148
163
149
164
/// <summary>
150
-
/// Specific search value.
165
+
/// Search value to apply to this specific column.
0 commit comments