Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <blockquote>When I try to insert data into the database it gets inserted to the database present in Debug folder and not in the database which is included in the project...</blockquote> <p>Which is exactly what you told it to do, and is what you want. The database in your project folder is part of the source code. When you test or debug your code, the data changed is part of your test or temporary debug output, not your source code.</p> <p>When you test your code, would you want the test overwriting your source code? I hope not, that would destroy your source; and when you deploy your project you don't usually deploy your source code. The same is true of your data; the data in your project is part of your application and is <strong>not</strong> the end-user data. When you install your application your source data gets installed to <code>DataDirectory</code>, which is part of your application and is not user data; the user may not even be able to write to it.</p> <p>When you uninstall or update your application, <code>DataDirectory</code> gets uninstalled or updated. You don't want to do that to your user's data; would you like it if every time you updated Microsoft Word it deleted every Word file on your drive? That's what would happen if Word stored user data in its equivalent of <code>DataDirectory</code>.</p> <p><code>DataDirectory</code> is only for your app's private use. If a user needs this data you should copy it to a user-writable place that won't get deleted, like <code>Environment.SpecialFolder.ApplicationData</code>.</p> <p>Further explanations at <a href="https://stackoverflow.com/a/13998558/22437">this answer</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload