We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44e9ae5 commit 402b207Copy full SHA for 402b207
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/Server/SqlDataRecord.cs
@@ -58,16 +58,14 @@ public virtual Type GetFieldType(int ordinal)
58
{
59
SqlMetaData md = GetSqlMetaData(ordinal);
60
61
-#if NETFRAMEWORK
+ #if NETFRAMEWORK
62
if (md.SqlDbType == SqlDbType.Udt)
63
64
return md.Type;
65
}
66
- else
67
-#endif
68
- {
69
- return MetaType.GetMetaTypeFromSqlDbType(md.SqlDbType, false).ClassType;
70
- }
+ #endif
+
+ return MetaType.GetMetaTypeFromSqlDbType(md.SqlDbType, isMultiValued: false).ClassType;
71
72
73
/// <include file='../../../../../../../doc/snippets/Microsoft.Data.SqlClient.Server/SqlDataRecord.xml' path='docs/members[@name="SqlDataRecord"]/GetValue/*' />
0 commit comments