janjosephlim / dapper-dot-net

Automatically exported from code.google.com/p/dapper-dot-net
Other
0 stars 0 forks source link

Null Reference Exception - DynamicParameters.Get<>() #187

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

DynamicParameters parameters = new DynamicParameters();

1. string name= parameters.Get<string>("name");
2.
3.

What is the expected output? What do you see instead?

Expected output is the dictionary value that matches the requested key.
I'm receiving a 'Null Reference Exception'

What version of the product are you using? On what operating system?

Current Version - Dapper 1.8 , OS- Windows 7

Please provide any additional information below.

Original issue reported on code.google.com by davesere...@gmail.com on 27 Feb 2015 at 3:38

GoogleCodeExporter commented 8 years ago
DynamicParameters parameters = new DynamicParameters();
parameters.Add("@name", "TEST");

1. string name= parameters.Get<string>("name");

Original comment by davesere...@gmail.com on 27 Feb 2015 at 3:40