Using version 6.1.0:
// <PackageReference Include="Microsoft.Data.SqlClient" Version="6.1.0" />
using Microsoft.Data.SqlTypes;
Console.WriteLine(SqlVector<float>.Null.IsNull);
Results in:
Unhandled exception. System.MissingMethodException: Method not found: 'Microsoft.Data.SqlTypes.SqlVector`1<!0> Microsoft.Data.SqlTypes.SqlVector`1.get_Null()'.
at Program.<Main>$(String[] args)
Is it because?...
Here, the return value is not defined as nullable:
|
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlVector.xml' path='docs/members[@name="SqlVector"]/Null/*' /> |
|
public static SqlVector<T> Null => throw null; |
While here, the return value is defined as nullable:
|
/// <include file='../../../../doc/snippets/Microsoft.Data.SqlTypes/SqlVector.xml' path='docs/members[@name="SqlVector"]/Null/*' /> |
|
public static SqlVector<T>? Null => null; |
(And this was not updated when SqlVector became a value type.)
Using version 6.1.0:
Results in:
Is it because?...
Here, the return value is not defined as nullable:
SqlClient/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs
Lines 133 to 134 in b89ac49
While here, the return value is defined as nullable:
SqlClient/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlTypes/SqlVector.cs
Lines 107 to 108 in b89ac49
(And this was not updated when SqlVector became a value type.)