Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8923473
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:07:50+00:00 2026-06-15T07:07:50+00:00

I know there is probably an obvious reason but I can’t find it.. I

  • 0

I know there is probably an obvious reason but I can’t find it..

I usually use the using statement during DB connection and data reading, but I can’t use it on DataAdapter because it doesn’t implement IDisposable.

Also: how can it behave after filling a dataset?

Does it close itself the connection?

Only close it or dispose it?

Do I have to dispose the internal connection by myself after the dataset filling? If so, why IDataAdapter doesn’t have a related property/method?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T07:07:51+00:00Added an answer on June 15, 2026 at 7:07 am

    DataAdapter dosn’t implement IDisposable because it doesn’t have any member variables that need to be handled outside of normal garbage collection. In other words it doesn’t need to implement IDisposable.

    If your intrested you can see the source code to the Mono DataAdapter here : http://www.java2v.com/Open-Source/CSharp/2.6.4-mono-.net-core/System.Data/System/Data/Common/DataAdapter.cs.htm

    In general if you going to close the connection after using it, go ahead in put the connection in a using scope, but its ok too to have a singleton and have multipal DataAdapters in multipal scopes using the same connection.

    Hope this makes sense.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know that probably there is no concept of scope for macros, but please
I know there is a lot on this topic but I can't get any
Okay, so the answer is probably obvious, but I don't know the correct way
I know what I want to do is probably easy and obvious but I
I know the answer is probably really obvious, but I'm having a complete brain
I'm probably missing something obvious, but is there a way to access the index/count
This is probably a very obvious question but I can't quite figure it out.
I know this is probably really obvious, but I cannot figure out why I
I'm not too good with SQL and I know there's probably a much more
I know there are lots of tools on the net that can make our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.