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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access