liveBook · Manning

Connection string

As explained in .NET in Action, Second Edition

A connection string is a configuration string that specifies how an application connects to a data source and its connection options.

A connection string configures how an application connects to a data source. With SQLite, it selects in-memory or file-based storage. An in-memory database disappears when all connections close, so keep a connection open while using it. section 5.3

How .NET in Action, Second Edition covers it

How deep it goes
Explains SQLite storage selection and the in-memory lifetime caveat, but gives no file-based connection-string example.
Examples
Uses `DataSource=manningbooks;mode=memory;cache=shared` and keeps a SQLite connection open.
What you can do after
Configure SQLite to use a shared in-memory database and keep it alive with an open connection.
How it connects
Connects SQLite configuration with Entity Framework Core and DbContext.

Also explained in

Compare how 7 books explain connection string →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of .NET in Action, Second Edition. The section links point to the parts of the book it draws on.