You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Testing local build (main) with Dapper shows a few problems, i.e. "it doesn't work"; severity: IMO critical, this should absolutely be fixed before next build; the batch API is not usable by non-provider scenarios without it
SqlConnection fails to override the CanCreateBatch and CreateDbBatch() members (net6+)
SqlBatchCommanddoesoverride the CanCreateParameter and CreateParameter() members (net8+), but: the library does not currently build for net8, so: this code is never actually compiled as far as I can see
I also get a build error from Microsoft.Data.SqlClient.notsupported.cs via GenAPI; not sure what to do about that one, but: it needs fixing. It looks like the file gets regenerated on build, so manual hack may not be sufficient.
awesome; I'll go ahead and do what I can with my locally hacked version that targets net7 with the first half of the fixes; I can't test the net8 parameter fix (because that single error is blocking the build), but... that's the small end of the wedge for this
Activity
mgravell commentedon Nov 16, 2023
note that adding net8 triggers a few
[Obsolete]warnings, CS0672; requireson
SqlException.GetObjectDataSqlException.ctor(SerializationInfo, StreamingContext)OperationAbortedException.ctor(SerializationInfo, StreamingContext)I also get a build error from
Microsoft.Data.SqlClient.notsupported.csviaGenAPI; not sure what to do about that one, but: it needs fixing. It looks like the file gets regenerated on build, so manual hack may not be sufficient.Wraith2 commentedon Nov 16, 2023
I'll take a look.
mgravell commentedon Nov 16, 2023
awesome; I'll go ahead and do what I can with my locally hacked version that targets net7 with the first half of the fixes; I can't test the net8 parameter fix (because that single error is blocking the build), but... that's the small end of the wedge for this
testing SqlClient 5.2 batch API (local build with hacks, see dotnet/S…