diff --git a/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.cs
index ce6e481434..de581dbb0e 100644
--- a/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.cs
+++ b/src/Microsoft.Data.SqlClient/ref/Microsoft.Data.SqlClient.cs
@@ -47,137 +47,287 @@ protected SqlAuthenticationInitializer() { }
public abstract void Initialize();
}
-#if NET
///
+#if NET
public class SqlBatch : System.Data.Common.DbBatch
+#else
+public class SqlBatch : System.IDisposable, System.IAsyncDisposable
+#endif
{
///
public SqlBatch() { throw null; }
///
public SqlBatch(Microsoft.Data.SqlClient.SqlConnection connection, Microsoft.Data.SqlClient.SqlTransaction transaction = null) { throw null; }
///
+ #if NET
public override int Timeout { get => throw null; set { } }
+ #else
+ public int Timeout { get => throw null; set { } }
+ #endif
///
public System.Collections.Generic.List Commands { get { throw null; } }
///
+ #if NET
public new Microsoft.Data.SqlClient.SqlConnection Connection { get => throw null; set { } }
+ #else
+ public Microsoft.Data.SqlClient.SqlConnection Connection { get => throw null; set { } }
+ #endif
///
+ #if NET
public new Microsoft.Data.SqlClient.SqlTransaction Transaction { get => throw null; set { } }
+ #else
+ public Microsoft.Data.SqlClient.SqlTransaction Transaction { get => throw null; set { } }
+ #endif
///
+ #if NET
public new SqlBatchCommandCollection BatchCommands { get => throw null; }
+ #else
+ public SqlBatchCommandCollection BatchCommands { get => throw null; }
+ #endif
+ #if NET
///
protected override System.Data.Common.DbBatchCommandCollection DbBatchCommands { get => throw null; }
+ #endif
///
+ #if NET
protected override System.Data.Common.DbConnection DbConnection { get => throw null; set { } }
+ #else
+ protected virtual System.Data.Common.DbConnection DbConnection { get => throw null; set { } }
+ #endif
///
+ #if NET
protected override System.Data.Common.DbTransaction DbTransaction { get => throw null; set { } }
+ #else
+ protected virtual System.Data.Common.DbTransaction DbTransaction { get => throw null; set { } }
+ #endif
///
+ #if NET
public override void Cancel() => throw null;
- ///
+ #else
+ public void Cancel() => throw null;
+ #endif
+ #if NET
+ ///
protected override System.Data.Common.DbBatchCommand CreateDbBatchCommand() => throw null;
+ #endif
///
+ #if NET
public override void Dispose() => throw null;
+ #else
+ public void Dispose() => throw null;
+ #endif
+ #if !NET
+ ///
+ public virtual System.Threading.Tasks.ValueTask DisposeAsync() => throw null;
+ #endif
///
+ #if NET
protected override System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) => throw null;
+ #else
+ protected virtual System.Data.Common.DbDataReader ExecuteDbDataReader(System.Data.CommandBehavior behavior) => throw null;
+ #endif
///
+ #if NET
protected override System.Threading.Tasks.Task ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) => throw null;
+ #else
+ protected virtual System.Threading.Tasks.Task ExecuteDbDataReaderAsync(System.Data.CommandBehavior behavior, System.Threading.CancellationToken cancellationToken) => throw null;
+ #endif
///
+ #if NET
public override int ExecuteNonQuery() => throw null;
+ #else
+ public int ExecuteNonQuery() => throw null;
+ #endif
///
+ #if NET
public override System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Threading.CancellationToken cancellationToken = default) => throw null;
+ #else
+ public System.Threading.Tasks.Task ExecuteNonQueryAsync(System.Threading.CancellationToken cancellationToken = default) => throw null;
+ #endif
///
public Microsoft.Data.SqlClient.SqlDataReader ExecuteReader() => throw null;
///
+ #if NET
public new System.Threading.Tasks.Task ExecuteReaderAsync(System.Threading.CancellationToken cancellationToken = default) => throw null;
+ #else
+ public System.Threading.Tasks.Task ExecuteReaderAsync(System.Threading.CancellationToken cancellationToken = default) => throw null;
+ #endif
///
+ #if NET
public override object ExecuteScalar() => throw null;
+ #else
+ public object ExecuteScalar() => throw null;
+ #endif
///
+ #if NET
public override System.Threading.Tasks.Task