Bug 52577 - System.Data.SqlClient.SqlParameter does not contain a definition for TypeName
Summary: System.Data.SqlClient.SqlParameter does not contain a definition for TypeName
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Data (show other bugs)
Version: 4.6.0 (C8)
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Alexander Köplinger [MSFT]
Depends on:
Reported: 2017-02-16 16:55 UTC by Sean Rowe
Modified: 2017-10-27 12:03 UTC (History)
3 users (show)

See Also:
Is this bug a regression?: ---
Last known good build:


Description Sean Rowe 2017-02-16 16:55:41 UTC
Though the source code seems to have TypeName defined, it does not seem to be available after mono is compiled. I've even downloaded the source code and recompiled to make sure it wasn't something with the binary I downloaded for Ubuntu.
Comment 1 Egorbo 2017-02-23 17:35:21 UTC
Reproduced. The property is not available but can be called via Reflection:
typeof(SqlParameter).GetProperty("TypeName").GetValue(param, null);

So looks like the Reference assemblies for this Profile doesn't have it defined.

Comment 2 Marek Safar 2017-02-23 18:26:18 UTC
As a workaround update your .net target version to framework to 4.6
Comment 3 Marek Safar 2017-10-27 12:03:18 UTC
Already fixed in master

Note You need to log in before you can comment on or make changes to this bug.