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

Commit aef70a8

Browse files
committed
Merge branch 'master' of github.com:ServiceStack/ServiceStack.OrmLite
2 parents 8e54495 + bb5a736 commit aef70a8

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)