using (var conn = _config.OpenConnection()) { var p = new DynamicParameters(); p.Add("@playerName",playerName);
It worked earlier in earlier versions, but the latest version of dapper 1.40.0.0 returns a strange error:
Result message: Test method DupGames.Database.DbAccess.Tests.BlackjackDbTests.SelectNewDealTest exception: System.MissingMethodException: method not found: 'Void Dapper.DynamicParameters.Add (System.String, System.Object, System.Nullable 1<System.Data.DbType>, System.Nullable 1, System.Nullable 1<Int32>, System.Nullable 1, System.Nullable`1).
c # dapper
Betty
source share