Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <ol> <li>The typed dataset/table is database independent. (however, if you add adapters in the designer they get DB-specific.. Don't use adapters from the designer <br></li> <li>The adapters <strong>ARE NOT</strong> database independent. <br></li> <li>Databinding is database independent. But beware of drag-drop databinding automatically adding an adapter<br> <br><br></li> </ol> <p>My advice:</p> <ul> <li>Remove the adpaters from the dataset designer</li> <li>Rewrite your own repositories/adapters using a simple class with methods that get/fill tables. So you use them instead of the generated adapters. These classes can be DB-specific. So for instance a PersonRepositorySqlServer,PersonRepositoryMySql. Or perhaps you give the db-type with the constructor to reuse the SQL as much as possible..<br></li> <li>If you used adapter on your forms, remove them to. Hand-code the filling of the dataset</li> </ul> <p>What I always do to answer the rest of the questions<br></p> <ul> <li>I use typed datasets but I just make the tables and not the adapters</li> <li>I Usualy code the databindings since sometimes the designer messes up but this is not necessary to be db independent</li> <li>I write my own repositories that use adapters to fill/get/update the datatables. However I code them by hand. Given a typed datatable it's rather easy to auomatically generate update/insert/delete/fill statements by the way..</li> </ul> <p><br><br> Rewriting the adapters looks hard but is actually pretty doable. </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. 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.
 

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