@@ -1921,6 +1921,56 @@ public void RemoveAt(string sourceTable) { }
1921
1921
System . Data . ITableMapping System . Data . ITableMappingCollection . Add ( string sourceTableName , string dataSetTableName ) { throw null ; }
1922
1922
System . Data . ITableMapping System . Data . ITableMappingCollection . GetByDataSetTable ( string dataSetTableName ) { throw null ; }
1923
1923
}
1924
+ public abstract class DbBatch : System . IDisposable , System . IAsyncDisposable
1925
+ {
1926
+ public System . Data . Common . DbBatchCommandCollection BatchCommands { get { throw null ; } }
1927
+ protected abstract System . Data . Common . DbBatchCommandCollection DbBatchCommands { get ; }
1928
+ public abstract int Timeout { get ; set ; }
1929
+ public System . Data . Common . DbConnection ? Connection { get ; set ; }
1930
+ protected abstract System . Data . Common . DbConnection ? DbConnection { get ; set ; }
1931
+ public System . Data . Common . DbTransaction ? Transaction { get ; set ; }
1932
+ protected abstract System . Data . Common . DbTransaction ? DbTransaction { get ; set ; }
1933
+ public System . Data . Common . DbDataReader ExecuteReader ( System . Data . CommandBehavior behavior = System . Data . CommandBehavior . Default ) { throw null ; }
1934
+ protected abstract System . Data . Common . DbDataReader ExecuteDbDataReader ( System . Data . CommandBehavior behavior ) ;
1935
+ public System . Threading . Tasks . Task < System . Data . Common . DbDataReader > ExecuteReaderAsync ( System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
1936
+ public System . Threading . Tasks . Task < System . Data . Common . DbDataReader > ExecuteReaderAsync ( System . Data . CommandBehavior behavior , System . Threading . CancellationToken cancellationToken = default ) { throw null ; }
1937
+ protected abstract System . Threading . Tasks . Task < System . Data . Common . DbDataReader > ExecuteDbDataReaderAsync ( System . Data . CommandBehavior behavior , System . Threading . CancellationToken cancellationToken ) ;
1938
+ public abstract int ExecuteNonQuery ( ) ;
1939
+ public abstract System . Threading . Tasks . Task < int > ExecuteNonQueryAsync ( System . Threading . CancellationToken cancellationToken = default ) ;
1940
+ public abstract object ? ExecuteScalar ( ) ;
1941
+ public abstract System . Threading . Tasks . Task < object ? > ExecuteScalarAsync ( System . Threading . CancellationToken cancellationToken = default ) ;
1942
+ public abstract void Prepare ( ) ;
1943
+ public abstract System . Threading . Tasks . Task PrepareAsync ( System . Threading . CancellationToken cancellationToken = default ) ;
1944
+ public abstract void Cancel ( ) ;
1945
+ public System . Data . Common . DbBatchCommand CreateBatchCommand ( ) { throw null ; }
1946
+ protected abstract System . Data . Common . DbBatchCommand CreateDbBatchCommand ( ) ;
1947
+ public virtual void Dispose ( ) { throw null ; }
1948
+ public virtual System . Threading . Tasks . ValueTask DisposeAsync ( ) { throw null ; }
1949
+ }
1950
+ public abstract class DbBatchCommand
1951
+ {
1952
+ public abstract string CommandText { get ; set ; }
1953
+ public abstract CommandType CommandType { get ; set ; }
1954
+ public abstract int RecordsAffected { get ; }
1955
+ public DbParameterCollection Parameters { get { throw null ; } }
1956
+ protected abstract DbParameterCollection DbParameterCollection { get ; }
1957
+ }
1958
+ public abstract class DbBatchCommandCollection : System . Collections . Generic . IList < DbBatchCommand >
1959
+ {
1960
+ public abstract System . Collections . Generic . IEnumerator < System . Data . Common . DbBatchCommand > GetEnumerator ( ) ;
1961
+ System . Collections . IEnumerator System . Collections . IEnumerable . GetEnumerator ( ) { throw null ; }
1962
+ public abstract void Add ( System . Data . Common . DbBatchCommand item ) ;
1963
+ public abstract void Clear ( ) ;
1964
+ public abstract bool Contains ( System . Data . Common . DbBatchCommand item ) ;
1965
+ public abstract void CopyTo ( System . Data . Common . DbBatchCommand [ ] array , int arrayIndex ) ;
1966
+ public abstract bool Remove ( System . Data . Common . DbBatchCommand item ) ;
1967
+ public abstract int Count { get ; }
1968
+ public abstract bool IsReadOnly { get ; }
1969
+ public abstract int IndexOf ( DbBatchCommand item ) ;
1970
+ public abstract void Insert ( int index , DbBatchCommand item ) ;
1971
+ public abstract void RemoveAt ( int index ) ;
1972
+ public abstract DbBatchCommand this [ int index ] { get ; set ; }
1973
+ }
1924
1974
public abstract partial class DbColumn
1925
1975
{
1926
1976
protected DbColumn ( ) { }
@@ -2079,6 +2129,9 @@ public virtual event System.Data.StateChangeEventHandler? StateChange { add { }
2079
2129
public virtual System . Threading . Tasks . Task ChangeDatabaseAsync ( string databaseName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) ) { throw null ; }
2080
2130
public abstract void Close ( ) ;
2081
2131
public virtual System . Threading . Tasks . Task CloseAsync ( ) { throw null ; }
2132
+ public virtual bool CanCreateBatch { get { throw null ; } }
2133
+ public System . Data . Common . DbBatch CreateBatch ( ) { throw null ; }
2134
+ protected virtual System . Data . Common . DbBatch CreateDbBatch ( ) { throw null ; }
2082
2135
public System . Data . Common . DbCommand CreateCommand ( ) { throw null ; }
2083
2136
protected abstract System . Data . Common . DbCommand CreateDbCommand ( ) ;
2084
2137
public virtual System . Threading . Tasks . ValueTask DisposeAsync ( ) { throw null ; }
@@ -2371,6 +2424,8 @@ protected DbException(string? message, System.Exception? innerException) { }
2371
2424
protected DbException ( string ? message , int errorCode ) { }
2372
2425
public virtual bool IsTransient { get { throw null ; } }
2373
2426
public virtual string ? SqlState { get { throw null ; } }
2427
+ public System . Data . Common . DbBatchCommand ? BatchCommand { get { throw null ; } }
2428
+ protected virtual System . Data . Common . DbBatchCommand ? DbBatchCommand { get { throw null ; } }
2374
2429
}
2375
2430
public static partial class DbMetaDataCollectionNames
2376
2431
{
@@ -2532,9 +2587,12 @@ public static void RegisterFactory(string providerInvariantName, [System.Diagnos
2532
2587
public abstract partial class DbProviderFactory
2533
2588
{
2534
2589
protected DbProviderFactory ( ) { }
2590
+ public virtual bool CanCreateBatch { get { throw null ; } }
2535
2591
public virtual bool CanCreateCommandBuilder { get { throw null ; } }
2536
2592
public virtual bool CanCreateDataAdapter { get { throw null ; } }
2537
2593
public virtual bool CanCreateDataSourceEnumerator { get { throw null ; } }
2594
+ public virtual System . Data . Common . DbBatch CreateBatch ( ) { throw null ; }
2595
+ public virtual System . Data . Common . DbBatchCommand CreateBatchCommand ( ) { throw null ; }
2538
2596
public virtual System . Data . Common . DbCommand ? CreateCommand ( ) { throw null ; }
2539
2597
public virtual System . Data . Common . DbCommandBuilder ? CreateCommandBuilder ( ) { throw null ; }
2540
2598
public virtual System . Data . Common . DbConnection ? CreateConnection ( ) { throw null ; }
0 commit comments