I managed to install System.Data.SqlClient from Nuget and I can use SqlConnection and SqlDataReader to read. But why error says Close() for SqlDataReader missing for DNX core 5?
DNX Core 5.0 error CS1061: 'SqlDataReader' does not contain a definition for 'Close' and no extension method 'Close' accepting a first argument of type 'SqlDataReader' could be found (are you missing a using directive or an assembly reference?)
You should upgrade to RC2 now.
Such Close
methods have been removed in many types, and you should call Dispose
in most cases instead.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With