15.1. What Is Persistence?

Whenever we run a program such as our SRS application, any objects (or value types, for that matter) that we declare and instantiate live in memory. When the program terminates, all of the memory allocated to the program is released back to the operating system, and the internal states of all of the objects created by the application are lost unless they have been saved—persisted—in some fashion.

Using various built-in I/O classes in the .NET Framework Class Library (FCL), C# provides a wealth of options with regard to persisting data.

  • The programming elements found in the System.Data, System.Data.Odbc, System.Data.OleDb, System.Data.SqlClient, and System.Data.Oracle namespaces allow us to save data to an Open Database ...

Get Beginning C# 2008 Objects: From Concept to Code now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.