# Swapping Databases

Source: https://help.codestencil.com/databases/swapping-databases

Most Stencils shipped with CodeStencil come installed with a Sqlite Chinook database.

![CS&#95;clip0042](https://codestencil.com/docs/cs_clip0042.png)

To understand how database swapping is used in code generation, let us examine the screenshot above by explaining the enumerated sections:

(1) Startup.cs

Here we can see 2 Startup.cs files tagged with "{Sqlite}" or "{SqlServer}".

What this means is that "Startup.cs {Sqlite}" contains code specific to the SQLite Database while "Startup.cs {SqlServer}" contains code specific to the SQL Server database.

**Startup.cs {Sqlite}**

![CS&#95;clip0043](https://codestencil.com/docs/cs_clip0043.png)

**Startup.cs {SqlServer}**

![CS&#95;clip0044](https://codestencil.com/docs/cs_clip0044.png)

(2) Expander - DATABASE

This expander indicates the database the generated application will be using. The expansion string is updated during [Schema Import](https://help.codestencil.com/schemas/schema-import-wizard) to reflect the database you are importing from.
