Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit bb5a736

Browse files
vlamythz
authored andcommitted
fix OrmLiteReadCommandExtensions. SetParameters value is an array type, the genus SetParamValue propType parameter error. (#610)
1 parent ae6954b commit bb5a736

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.OrmLite/OrmLiteReadCommandExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ internal static IDbCommand SetParameters(this IDbCommand dbCmd, Dictionary<strin
173173
p.Direction = ParameterDirection.Input;
174174
dialectProvider.InitDbParam(p, item.GetType());
175175

176-
dialectProvider.SetParamValue(p, item, propType);
176+
dialectProvider.SetParamValue(p, item, item.GetType());
177177

178178
dbCmd.Parameters.Add(p);
179179
}
@@ -238,7 +238,7 @@ internal static IDbCommand SetParameters(this IDbCommand dbCmd, Type type, objec
238238
p.Direction = ParameterDirection.Input;
239239
dialectProvider.InitDbParam(p, item.GetType());
240240

241-
dialectProvider.SetParamValue(p, item, propType);
241+
dialectProvider.SetParamValue(p, item, item.GetType());
242242

243243
dbCmd.Parameters.Add(p);
244244
}

0 commit comments

Comments
 (0)