75 references to DataSourceOperation
System.Web (52)
UI\WebControls\ModelDataSourceView.cs (10)
426
EvaluateMethodParameters(
DataSourceOperation
.Select, method, mergedParameters);
613
EvaluateMethodParameters(
DataSourceOperation
.Delete, method, caseInsensitiveOldValues);
646
EvaluateMethodParameters(
DataSourceOperation
.Insert, method, caseInsensitiveNewValues);
685
EvaluateMethodParameters(
DataSourceOperation
.Update, method, caseInsensitiveNewValues);
938
EvaluateMethodParameters(
DataSourceOperation
.Select, method, controlValues: null, isPageLoadComplete: true);
948
protected virtual void EvaluateMethodParameters(
DataSourceOperation
dataSourceOperation, ModelDataSourceMethod modelDataSourceMethod, IDictionary controlValues) {
961
protected virtual void EvaluateMethodParameters(
DataSourceOperation
dataSourceOperation, ModelDataSourceMethod modelDataSourceMethod, IDictionary controlValues, bool isPageLoadComplete) {
988
if (dataSourceOperation !=
DataSourceOperation
.Select) {
1027
if (dataSourceOperation ==
DataSourceOperation
.Select && customValueProvider != null && parameterInfo.ParameterType.IsSerializable) {
1039
Debug.Assert(dataSourceOperation ==
DataSourceOperation
.Select, "Only Select Operation should have been done immediately after page load");
UI\WebControls\ObjectDataSourceView.cs (29)
865
method = GetResolvedMethodData(type, DeleteMethod, dataObjectType, oldDataObject, null,
DataSourceOperation
.Delete);
896
method = GetResolvedMethodData(type, DeleteMethod, caseInsensitiveAllValues,
DataSourceOperation
.Delete);
939
method = GetResolvedMethodData(type, InsertMethod, dataObjectType, null, newDataObject,
DataSourceOperation
.Insert);
962
method = GetResolvedMethodData(type, InsertMethod, caseInsensitiveAllValues,
DataSourceOperation
.Insert);
1098
ObjectDataSourceMethod method = GetResolvedMethodData(type, SelectMethod, mergedParameters,
DataSourceOperation
.Select);
1240
method = GetResolvedMethodData(type, UpdateMethod, dataObjectType, oldDataObject, newDataObject,
DataSourceOperation
.Update);
1258
method = GetResolvedMethodData(type, UpdateMethod, dataObjectType, null, newDataObject,
DataSourceOperation
.Update);
1296
method = GetResolvedMethodData(type, UpdateMethod, caseInsensitiveAllValues,
DataSourceOperation
.Update);
1313
private static DataObjectMethodType GetMethodTypeFromOperation(
DataSourceOperation
operation) {
1315
case
DataSourceOperation
.Delete:
1317
case
DataSourceOperation
.Insert:
1319
case
DataSourceOperation
.Select:
1321
case
DataSourceOperation
.Update:
1341
private ObjectDataSourceMethod GetResolvedMethodData(Type type, string methodName, Type dataObjectType, object oldDataObject, object newDataObject,
DataSourceOperation
operation) {
1456
private ObjectDataSourceMethod GetResolvedMethodData(Type type, string methodName, IDictionary allParameters,
DataSourceOperation
operation) {
1460
bool isSelectCount = (operation ==
DataSourceOperation
.SelectCount);
1677
case
DataSourceOperation
.Delete:
1680
case
DataSourceOperation
.Insert:
1683
case
DataSourceOperation
.Select:
1686
case
DataSourceOperation
.SelectCount:
1689
case
DataSourceOperation
.Update:
1709
case
DataSourceOperation
.Delete:
1712
case
DataSourceOperation
.Insert:
1715
case
DataSourceOperation
.Select:
1718
case
DataSourceOperation
.SelectCount:
1721
case
DataSourceOperation
.Update:
1944
ObjectDataSourceMethod method = GetResolvedMethodData(type, SelectCountMethod, mergedParameters,
DataSourceOperation
.SelectCount);
2072
internal
DataSourceOperation
Operation;
2077
internal ObjectDataSourceMethod(
DataSourceOperation
operation, Type type, MethodInfo methodInfo, OrderedDictionary parameters) {
UI\WebControls\SqlDataSourceView.cs (13)
678
private Exception BuildCustomException(Exception ex,
DataSourceOperation
operation, DbCommand command, out bool isCustomException) {
714
private int ExecuteDbCommand(DbCommand command,
DataSourceOperation
operation) {
738
case
DataSourceOperation
.Delete:
741
case
DataSourceOperation
.Insert:
744
case
DataSourceOperation
.Update:
754
case
DataSourceOperation
.Delete:
757
case
DataSourceOperation
.Insert:
760
case
DataSourceOperation
.Update:
828
return ExecuteDbCommand(command,
DataSourceOperation
.Delete);
864
return ExecuteDbCommand(command,
DataSourceOperation
.Insert);
1048
ex = BuildCustomException(ex,
DataSourceOperation
.Select, command, out isCustomException);
1117
ex = BuildCustomException(ex,
DataSourceOperation
.Select, command, out isCustomException);
1173
return ExecuteDbCommand(command,
DataSourceOperation
.Update);
System.Web.Extensions (23)
UI\WebControls\ContextDataSourceView.cs (5)
172
protected virtual ContextDataSourceContextData CreateContext(
DataSourceOperation
operation) {
177
ContextDataSourceContextData contextData = CreateContext(
DataSourceOperation
.Select);
191
contextData = CreateContext(
DataSourceOperation
.Update);
209
contextData = CreateContext(
DataSourceOperation
.Delete);
227
contextData = CreateContext(
DataSourceOperation
.Insert);
UI\WebControls\LinqDataSourceContextEventArgs.cs (4)
15
private
DataSourceOperation
_operation;
18
_operation =
DataSourceOperation
.Select;
21
public LinqDataSourceContextEventArgs(
DataSourceOperation
operation) {
34
public
DataSourceOperation
Operation {
UI\WebControls\LinqDataSourceView.cs (10)
335
protected override ContextDataSourceContextData CreateContext(
DataSourceOperation
operation) {
336
if (operation ==
DataSourceOperation
.Select) {
342
private ContextDataSourceContextData CreateContextAndTable(
DataSourceOperation
operation) {
358
if (operation !=
DataSourceOperation
.Select) {
411
private ContextDataSourceContextData CreateContextAndTableForEdit(
DataSourceOperation
operation) {
439
ContextDataSourceContextData contextData = CreateContextAndTable(
DataSourceOperation
.Select);
634
protected override void HandleValidationErrors(IDictionary<string, Exception> errors,
DataSourceOperation
operation) {
643
case
DataSourceOperation
.Delete:
650
case
DataSourceOperation
.Insert:
656
case
DataSourceOperation
.Update:
UI\WebControls\QueryableDataSourceView.cs (4)
749
protected abstract void HandleValidationErrors(IDictionary<string, Exception> errors,
DataSourceOperation
operation);
756
HandleValidationErrors(errors,
DataSourceOperation
.Delete);
769
HandleValidationErrors(errors,
DataSourceOperation
.Insert);
781
HandleValidationErrors(errors,
DataSourceOperation
.Update);