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