Skip to content

Commit 846929a

Browse files
committed
Reverted Object[] to IList<object> in CommandHelper
1 parent 3d2020d commit 846929a

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,5 @@ apply_config.bat
2020
NDependOut
2121
*.dotCover
2222
*_mm_cache.bin
23+
Simple.Data.sln.DotSettings.user
24+
Simple.Data/Simple.Data.idc

Simple.Data.Ado/CommandHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public CommandHelper(AdoAdapter adapter)
2121
_schemaProvider = adapter.SchemaProvider;
2222
}
2323

24-
internal IDbCommand Create(IDbConnection connection, string sql, Object[] values)
24+
internal IDbCommand Create(IDbConnection connection, string sql, IList<object> values)
2525
{
2626
var command = connection.CreateCommand();
2727

@@ -96,7 +96,7 @@ private string PrepareInsertCommand(string sql, IDbCommand command, IEnumerable<
9696
return sqlBuilder.ToString();
9797
}
9898

99-
public static void SetParameterValues(IDbCommand command, Object[] values)
99+
public static void SetParameterValues(IDbCommand command, IList<object> values)
100100
{
101101
int index = 0;
102102
foreach (var parameter in command.Parameters.Cast<IDbDataParameter>())

0 commit comments

Comments
 (0)