runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Where is SqlCommandBuilder class ?

Open sady4850 opened this issue 10 years ago • 15 comments

Should be in System.Data.SqlClient assembly.

If where no plans implementing it please give a hint how to retrieve stored procedure parameter information (SqlCommandBuilder.DeriveParameters) .

Thanks

sady4850 avatar Jan 18 '16 12:01 sady4850

Any update on this class?

linl33 avatar Oct 16 '16 06:10 linl33

Looking for a SqlCommandBuilder workaround.

mfe- avatar Dec 14 '16 16:12 mfe-

@saurabh500 is this planned for 2.0? I tried to add the type but failed as some members and other types are missing.

ViktorHofer avatar Apr 19 '17 13:04 ViktorHofer

cc @YoungGah

ViktorHofer avatar Apr 20 '17 18:04 ViktorHofer

Note: If/when SqlCommandBuilder is added, SqlClientFactory should override CreateCommandBuilder and return a new instance of SqlCommandBuilder.

justinvp avatar May 11 '17 23:05 justinvp

Will this one will be in 2.1.0?

nhathongly avatar Jun 05 '17 03:06 nhathongly

This was added in https://github.com/dotnet/corefx/pull/20883

It will ship in 2.1.0.

corivera avatar Jul 19 '17 22:07 corivera

I guess a work around if you can't wait for Q2 2018 (I can't) is to peek at the reference source and corefx impl and see if you can bring what you need into your project until 2.1 is released. Or run back to the full framework if you can do that.

bruno-garcia avatar Dec 19 '17 15:12 bruno-garcia

@corivera i have downloaded 2.1.0 but still not able to see SqlCommandBuilder class, can you please provide some update?

or is there any alternative to this

amitgpta avatar Apr 23 '18 20:04 amitgpta

I actually got the preview and implemented it on my code and it is working fine. Make sure you add the correct references and are using VS 2017 preview as well

fdominguezcen avatar Apr 24 '18 13:04 fdominguezcen

@fdominguezcen I have Visual Studio Enterprise 2017, looks like some reference issue, can you please provide some detail which .net core Preview version you installed and how you updated the reference from 2.0 to 2.1.x preview version

amitgpta avatar Apr 24 '18 16:04 amitgpta

@amitgpta what's the version of SqlClient that you are using?

saurabh500 avatar Apr 24 '18 17:04 saurabh500

@amitgpta You need to install VS 2017 preview edition, then you can reference the preview assemblies

fdominguezcen avatar Apr 24 '18 17:04 fdominguezcen

@amitgpta SqlClient has support for SqlCommandBuilder stating 4.5. Try to add a dependency on this package from Nuget https://www.nuget.org/packages/System.Data.SqlClient/4.5.0-preview2-26406-04

saurabh500 avatar Apr 24 '18 17:04 saurabh500

Thanks @saurabh500,@fdominguezcen now its working

amitgpta avatar Apr 24 '18 20:04 amitgpta