How to specify database name in Code First? May 26, 2023 by Tarik Create a connection string in the app.config/web.config with the same name as the context and the EF will use that DB.