58 references to CommandType
netstandard (1)
netstandard.cs (1)
446[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.CommandType))]
System.Data (1)
src\runtime\src\libraries\shims\System.Data\ref\System.Data.cs (1)
18[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.CommandType))]
System.Data.Common (6)
System\Data\Common\DbBatchCommand.cs (1)
13public abstract CommandType CommandType { get; set; }
System\Data\Common\DbCommand.cs (2)
24[DefaultValue(System.Data.CommandType.Text)] 26public abstract CommandType CommandType { get; set; }
System\Data\Common\DBCommandBuilder.cs (1)
1470command.CommandType = CommandType.Text;
System\Data\Common\DbDataSource.cs (1)
289public override CommandType CommandType
System\Data\IDbCommand.cs (1)
15CommandType CommandType { get; set; }
System.Data.Odbc (23)
Common\System\Data\Common\AdapterUtil.Odbc.cs (5)
88internal static ArgumentOutOfRangeException InvalidCommandType(CommandType value) 93case CommandType.Text: 94case CommandType.StoredProcedure: 95case CommandType.TableDirect: 100return InvalidEnumerationValue(typeof(CommandType), (int)value);
System\Data\Odbc\Odbc32.cs (5)
38internal static ArgumentOutOfRangeException NotSupportedCommandType(CommandType value) 43case CommandType.Text: 44case CommandType.StoredProcedure: 47case CommandType.TableDirect: 54return ODBC.NotSupportedEnumerationValue(typeof(CommandType), (int)value);
System\Data\Odbc\OdbcCommand.cs (10)
27private CommandType _commandType; 210DefaultValue(System.Data.CommandType.Text), 212public override CommandType CommandType 216CommandType cmdType = _commandType; 217return ((0 != cmdType) ? cmdType : CommandType.Text); 223case CommandType.Text: 224case CommandType.StoredProcedure: 228case CommandType.TableDirect: 704&& (CommandType != CommandType.StoredProcedure)) 883if (CommandType == CommandType.TableDirect)
System\Data\Odbc\OdbcCommandBuilder.cs (3)
111case System.Data.CommandType.Text: 113case System.Data.CommandType.StoredProcedure: 115case System.Data.CommandType.TableDirect:
System.Data.OleDb (27)
OleDbCommand.cs (19)
22private CommandType _commandType; 157[DefaultValue(System.Data.CommandType.Text)] 159public override CommandType CommandType 163CommandType cmdType = _commandType; 164return ((0 != cmdType) ? cmdType : CommandType.Text); 170case CommandType.Text: 171case CommandType.StoredProcedure: 172case CommandType.TableDirect: 389Debug.Assert(System.Data.CommandType.Text == CommandType || System.Data.CommandType.StoredProcedure == CommandType, "CreateAccessor: incorrect CommandType"); 648case CommandType.Text: 649case CommandType.StoredProcedure: 653case CommandType.TableDirect: 1039CommandType cmdtype = CommandType; 1043System.Data.CommandType.Text => cmdtxt, 1046System.Data.CommandType.StoredProcedure => ExpandStoredProcedureToText(cmdtxt), 1053System.Data.CommandType.TableDirect => cmdtxt, 1188if (CommandType.TableDirect != CommandType) 1193if (CommandType.TableDirect != CommandType)
OleDbCommandBuilder.cs (3)
113case System.Data.CommandType.Text: 115case System.Data.CommandType.StoredProcedure: 117case System.Data.CommandType.TableDirect:
System\Data\Common\AdapterUtil.cs (5)
261internal static ArgumentOutOfRangeException InvalidCommandType(CommandType value) 266case CommandType.Text: 267case CommandType.StoredProcedure: 268case CommandType.TableDirect: 273return InvalidEnumerationValue(typeof(CommandType), (int)value);