Commit 06aa5cfc authored by Pat Paasch's avatar Pat Paasch

fix parameter reference in anonymous function

Would occasionally generate exception "Invalid attempt to call MetaData when reader is closed"
parent ae71b7be
......@@ -1524,7 +1524,7 @@ public object SetValue(string key, object value)
string[] names = new string[effectiveFieldCount];
for (int i = 0; i < effectiveFieldCount; i++)
{
names[i] = reader.GetName(i + startBound);
names[i] = r.GetName(i + startBound);
}
table = new DapperTable(names);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment