Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / January 2004

Tip: Looking for answers? Try searching our database.

.NET OledbCommandBuilder Interface

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Riccardo - 03 Nov 2003 16:51 GMT
I've to override the getUpdateCommand method of OledbCommandBuilder
but I see that OledbCommandBuilder is NotInheritable and I can't
implement an interface of that class (because it doesn't exists).
Anyone knows what have I to do?
Thank you
Riccardo
"Carl Perry" - 27 Jan 2004 01:06 GMT
Riccardo,

Unfortunately there is no way, directly from the OleDbCommandBuilder to
override this behavior.  The only other mechanism that I can see to easily
provide your own UpdateCommand is to implement your own class/method and to
subscribe to the Row Updating/Updated events.  From here you can specify
what update command should be used for this particular data row.

In Whidbey we've done some work to make this easier.  If you're in the
Alpha or have Whidbey bits shoot me an email and I can provide more detail.
We have some bases classes you can inherit from to have the base behavior,
like Command Generation for CommandBuilder.

I'm interested in what you're going to be using this for.  Are you writing
your own provider and only want to overide this behavior or is this for an
application where you have a specific requirement?

Thanks,

Carl
cperry@microsoft.com

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.