Some methods supported in lower version but not in higher version
@wengxk commented on Sun Sep 02 2018
I got some questions that why there are some methods supported in lower version but not in higher version. For example, SqlParameterCollection.Add(String, SqlDbType, Int32, String) method and SqlDataAdapter.UpdateBatchSize property applies to .net core 2.0 but 2.1 not yet. Is there anybody konw about it , i will very appreciate! Thanks!
SqlDataAdapted in System.Data.Common namespace is present on 2.0 and 2.1: https://apisof.net/catalog/System.Data.Common.DbDataAdapter.UpdateBatchSize
System.Data.SqlClient.SqlDataAdapted is together with SqlParameterCollection part of Platform Extension, which is on TOP of .NET Core 2.0, applicable also to .NET Core 2.1.
cc @danmosemsft
I suspect the issue here is that API reference says that the APIs apply to .Net Core 2.0, but not to 2.1: SqlParameterCollection.Add, SqlDataAdapter.UpdateBatchSize .
There are already some issues about that on the docs repo: https://github.com/dotnet/docs/issues/6931, https://github.com/dotnet/docs/issues/6302, https://github.com/dotnet/docs/issues/6069.
And it seems fix is in progress (from https://github.com/dotnet/docs/issues/6302#issuecomment-405686768):
We're working on fixing this issue. The fix however will be to remove the .NET Core 2.0 from the list. When we got the reference assemblies for 2.0, it also included some of the extensions assemblies. We're also working on enabling docs for the extensions too but we still need more time to implement it correctly. In the meantime, we're discussing with the engineering team on possible interim solutions until the new feature is ready.
Yeah, that looks like duplicate of https://github.com/dotnet/docs/issues/6069#issuecomment-399257369, closing. Feel free to reopen/comment if it is something else. cc @mairaw
Thanks @svick for info!
Thank you for all! But today, i got the same problem as https://github.com/dotnet/corefx/issues/29391 when i using System.Data.SqlClient and set the UpdateBatchSize property to larger than 1 or set it to 0. I very much hope that this exception will be solved in the near future. Thanks a lot!
@wengxk the bug you linked does not seem to be related to this one. Just clarifying ... let us know if you think we missed something in the end-to-end story.