none
Persist objects to a database RRS feed

Answers

  • To persist an object to a database usually means to take an Class like Customer (or a DataTable or anything really) where customer has properties like ID, Name, Address and such. And sending this information to the Database. There are a number of ways this can be sent to a database. You can use Ado.net dataAdatpers. Essentially you construct SQL statements that are then executed against a database where the data is stored.

    In the end you have the following pieces
    1) Structure that holds data
    2) Way to transform instance data in structure to SQL statements
    3) Execute SQL statements against a database connection to add data into the database.

    Thanks
    Chris Robinson
    Program Manager - DataSet
    This posting is provided "AS IS" with no warranties, and confers no rights.
    Tuesday, February 24, 2009 9:58 PM