using (var conn = _config.OpenConnection())
{
var p = new DynamicParameters();
p.Add("@playerName",playerName);
It worked previously in earlier versions well but last dapper version 1.40.0.0 returns strange error :
Result Message: Test method DupGames.Database.DbAccess.Tests.BlackjackDbTests.SelectNewDealTest threw exception: System.MissingMethodException: Method not found: 'Void Dapper.DynamicParameters.Add(System.String, System.Object, System.Nullable
1<System.Data.DbType>, System.Nullable
1, System.Nullable1<Int32>, System.Nullable
1, System.Nullable`1)'.
For the benefit of others finding this via Google: it's possible that you have a static property in your model. See this bug for details.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With