Skip to content

Commit 211e872

Browse files
author
jaguzman
committed
Changed the visibility of the ado.net DbHelper.ExecuteList method to internal
1 parent ea17ad4 commit 211e872

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/DotNetToolkit.Repository.AdoNet/DbHelper.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ public T ExecuteObject<T>(string cmdText, Dictionary<string, object> parameters,
440440
/// <param name="parameters">The command parameters.</param>
441441
/// <param name="projector">A function to project each entity into a new form.</param>
442442
/// <returns>A list which each entity has been projected into a new form.</returns>
443-
public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, CommandType cmdType, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector)
443+
internal IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, CommandType cmdType, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector)
444444
{
445445
using (var reader = ExecuteReader(cmdText, cmdType, parameters))
446446
{
@@ -482,7 +482,7 @@ public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, CommandT
482482
/// <param name="parameters">The command parameters.</param>
483483
/// <param name="projector">A function to project each entity into a new form.</param>
484484
/// <returns>A list which each entity has been projected into a new form.</returns>
485-
public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector)
485+
internal IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector)
486486
{
487487
return ExecuteList<T>(cmdText, CommandType.Text, parameters, projector);
488488
}
@@ -494,7 +494,7 @@ public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictiona
494494
/// <param name="cmdText">The command text.</param>
495495
/// <param name="parameters">The command parameters.</param>
496496
/// <returns>A list which each entity has been projected into a new form.</returns>
497-
public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictionary<string, object> parameters) where T : class
497+
internal IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictionary<string, object> parameters) where T : class
498498
{
499499
var mapper = new Mapper<T>(_conventions);
500500

@@ -509,7 +509,7 @@ public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, Dictiona
509509
/// <param name="cmdType">The command type.</param>
510510
/// <param name="projector">A function to project each entity into a new form.</param>
511511
/// <returns>A list which each entity has been projected into a new form.</returns>
512-
public IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, CommandType cmdType, Func<DbDataReader, IRepositoryConventions, T> projector)
512+
internal IPagedQueryResult<IEnumerable<T>> ExecuteList<T>(string cmdText, CommandType cmdType, Func<DbDataReader, IRepositoryConventions, T> projector)
513513
{
514514
return ExecuteList<T>(cmdText, cmdType, null, projector);
515515
}
@@ -972,7 +972,7 @@ public DataSet ExecuteDataSet(string cmdText, Dictionary<string, object> paramet
972972
/// <param name="projector">A function to project each entity into a new form.</param>
973973
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
974974
/// <returns>The <see cref="System.Threading.Tasks.Task" /> that represents the asynchronous operation, containing a list which each entity has been projected into a new form.</returns>
975-
public async Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, CommandType cmdType, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector, CancellationToken cancellationToken = new CancellationToken())
975+
internal async Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, CommandType cmdType, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector, CancellationToken cancellationToken = new CancellationToken())
976976
{
977977
using (var reader = await ExecuteReaderAsync(cmdText, cmdType, parameters, cancellationToken))
978978
{
@@ -1015,7 +1015,7 @@ public DataSet ExecuteDataSet(string cmdText, Dictionary<string, object> paramet
10151015
/// <param name="projector">A function to project each entity into a new form.</param>
10161016
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
10171017
/// <returns>The <see cref="System.Threading.Tasks.Task" /> that represents the asynchronous operation, containing a list which each entity has been projected into a new form.</returns>
1018-
public Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector, CancellationToken cancellationToken = new CancellationToken())
1018+
internal Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, Dictionary<string, object> parameters, Func<DbDataReader, IRepositoryConventions, T> projector, CancellationToken cancellationToken = new CancellationToken())
10191019
{
10201020
return ExecuteListAsync<T>(cmdText, CommandType.Text, parameters, projector, cancellationToken);
10211021
}
@@ -1028,7 +1028,7 @@ public DataSet ExecuteDataSet(string cmdText, Dictionary<string, object> paramet
10281028
/// <param name="parameters">The command parameters.</param>
10291029
/// <param name="cancellationToken">A <see cref="System.Threading.CancellationToken" /> to observe while waiting for the task to complete.</param>
10301030
/// <returns>The <see cref="System.Threading.Tasks.Task" /> that represents the asynchronous operation, containing a list which each entity has been projected into a new form.</returns>
1031-
public Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, Dictionary<string, object> parameters, CancellationToken cancellationToken = new CancellationToken()) where T : class
1031+
internal Task<IPagedQueryResult<IEnumerable<T>>> ExecuteListAsync<T>(string cmdText, Dictionary<string, object> parameters, CancellationToken cancellationToken = new CancellationToken()) where T : class
10321032
{
10331033
var mapper = new Mapper<T>(_conventions);
10341034

0 commit comments

Comments
 (0)