51 references to CommandType
Aspire.Microsoft.Data.SqlClient (8)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (5)
34private readonly PropertyFetcher<CommandType> commandTypeFetcher = new("CommandType"); 108if (this.commandTypeFetcher.TryFetch(command, out CommandType commandType)) 112case CommandType.StoredProcedure: 120case CommandType.Text: 128case CommandType.TableDirect:
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (3)
57/// cref="CommandType.StoredProcedure"/> commands as the <see 82/// <c>SqlCommand</c>s with <see cref="CommandType.Text"/>.</item> 84/// <c>SqlCommand</c>s regardless of <see cref="CommandType"/>.
Aspire.Microsoft.EntityFrameworkCore.SqlServer (8)
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\Implementation\SqlClientDiagnosticListener.cs (5)
34private readonly PropertyFetcher<CommandType> commandTypeFetcher = new("CommandType"); 108if (this.commandTypeFetcher.TryFetch(command, out CommandType commandType)) 112case CommandType.StoredProcedure: 120case CommandType.Text: 128case CommandType.TableDirect:
src\Vendoring\OpenTelemetry.Instrumentation.SqlClient\SqlClientTraceInstrumentationOptions.cs (3)
57/// cref="CommandType.StoredProcedure"/> commands as the <see 82/// <c>SqlCommand</c>s with <see cref="CommandType.Text"/>.</item> 84/// <c>SqlCommand</c>s regardless of <see cref="CommandType"/>.
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (2)
UserStoreEncryptPersonalDataTest.cs (2)
126command.CommandType = System.Data.CommandType.Text; 148command.CommandType = System.Data.CommandType.Text;
netstandard (1)
netstandard.cs (1)
446[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.CommandType))]
System.Data (1)
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; 213DefaultValue(System.Data.CommandType.Text), 215public override CommandType CommandType 219CommandType cmdType = _commandType; 220return ((0 != cmdType) ? cmdType : CommandType.Text); 226case CommandType.Text: 227case CommandType.StoredProcedure: 231case CommandType.TableDirect: 710&& (CommandType != CommandType.StoredProcedure)) 889if (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 (2)
artifacts\obj\System.Data.OleDb\Debug\net10.0\System.Data.OleDb.notsupported.cs (2)
23[System.ComponentModel.DefaultValueAttribute(System.Data.CommandType.Text)] 25public override System.Data.CommandType CommandType { get { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } set { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_OleDb); } }