Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/libraries/System.Data.Common/ref/System.Data.Common.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1945,10 +1945,10 @@ public abstract class DbBatch : System.IDisposable, System.IAsyncDisposable
public abstract class DbBatchCommand
{
public abstract string CommandText { get; set; }
public abstract CommandType CommandType { get; set; }
public abstract System.Data.CommandType CommandType { get; set; }
public abstract int RecordsAffected { get; }
public DbParameterCollection Parameters { get { throw null; } }
protected abstract DbParameterCollection DbParameterCollection { get; }
public System.Data.Common.DbParameterCollection Parameters { get { throw null; } }
protected abstract System.Data.Common.DbParameterCollection DbParameterCollection { get; }
}
public abstract class DbBatchCommandCollection : System.Collections.Generic.IList<DbBatchCommand>
{
Expand All @@ -1964,7 +1964,9 @@ public abstract class DbBatchCommandCollection : System.Collections.Generic.ILis
public abstract int IndexOf(DbBatchCommand item);
public abstract void Insert(int index, DbBatchCommand item);
public abstract void RemoveAt(int index);
public abstract DbBatchCommand this[int index] { get; set; }
public System.Data.Common.DbBatchCommand this[int index] { get { throw null; } set { throw null; } }
protected abstract System.Data.Common.DbBatchCommand GetBatchCommand(int index);
protected abstract void SetBatchCommand(int index, System.Data.Common.DbBatchCommand batchCommand);
}
public abstract partial class DbColumn
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,14 @@ public abstract class DbBatchCommandCollection : IList<DbBatchCommand>

public abstract void RemoveAt(int index);

public abstract DbBatchCommand this[int index] { get; set; }
public DbBatchCommand this[int index]
{
get => GetBatchCommand(index);
set => SetBatchCommand(index, value);
}

protected abstract DbBatchCommand GetBatchCommand(int index);

protected abstract void SetBatchCommand(int index, DbBatchCommand batchCommand);
}
}