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
Status: NEW
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]
URL:
Depends on:
Blocks:
 
Reported: 2017-02-16 16:55 UTC by Sean Rowe
Modified: 2017-09-01 09:30 UTC (History)
3 users (show)

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


Attachments

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.

mono\external\binary-reference-assemblies\v4.5\System.Data.dll
Comment 2 Marek Safar 2017-02-23 18:26:18 UTC
As a workaround update your .net target version to framework to 4.6

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