connectionStrings in web.config is missing?
<p>I have an MVC project with EF, when I first created it I didn't define a connection string in the DBContext because I wanted to use the defaults, but I opened the web.config file and I didn't find the <code>connectionStrings</code> element!
I want to see the name of the database and which SQL server is used?..</p>

<p><strong>Edit</strong></p>

<p>Here is the my model classes:</p>

<pre><code>namespace MVCAppForTests.Models
{
    public class BookContext : DbContext
    {
        public DbSet&lt;Book&gt; Books { get; set; }
    }
    public enum Rating
    {
        Excellent,
        VeryGood,
        Good,
        OK,
        Bad
    }
    public class Book
    {
        public int ID { get; set; }
        public string Title { get; set; }
        [Required]
        public string Author { get; set; } = "Anonymous";
        public Rating Rating { get; set; }
        [DataType(DataType.Date)]
        public DateTime DateCreated { get; set; } = DateTime.Now;
    }
    public class Initializer : DropCreateDatabaseIfModelChanges&lt;BookContext&gt;
    {
        protected override void Seed(BookContext context)
        {
            var _books = new List&lt;Book&gt;
        {
            new Book { ID=1, Title="Awful Streets", Author="Tom Raouf", Rating= Rating.Good},
            new Book { ID=2, Title="Green Lights", Author="Sam Bruce", Rating= Rating.Bad},
            new Book { ID=3, Title="Bloodish breaths", Author="Yara Tarek", Rating= Rating.VeryGood},
            new Book { ID=4, Title="Happy inside", Author="Norman Zory", Rating= Rating.Bad},
            new Book { ID=5, Title="I lived again", Author="Adrian T. William", Rating= Rating.Excellent},
            new Book { ID=6, Title="And she knocked a door", Author="Tom Raouf", Rating= Rating.OK}
        };
            _books.ForEach(c =&gt; context.Books.Add(c));
            context.SaveChanges();
        }
    }
}
</code></pre>

<p>web.config:</p>

<pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=301880
  --&gt;
&lt;configuration&gt;
  &lt;configSections&gt;
    &lt;!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --&gt;
    &lt;section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /&gt;
  &lt;/configSections&gt;
  &lt;appSettings&gt;
    &lt;add key="webpages:Version" value="3.0.0.0" /&gt;
    &lt;add key="webpages:Enabled" value="false" /&gt;
    &lt;add key="ClientValidationEnabled" value="true" /&gt;
    &lt;add key="UnobtrusiveJavaScriptEnabled" value="true" /&gt;
  &lt;/appSettings&gt;
  &lt;system.web&gt;
    &lt;compilation debug="true" targetFramework="4.5.2" /&gt;
    &lt;httpRuntime targetFramework="4.5.2" /&gt;
    &lt;httpModules&gt;
      &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" /&gt;
    &lt;/httpModules&gt;
  &lt;/system.web&gt;
  &lt;runtime&gt;
    &lt;assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="Newtonsoft.Json" culture="neutral" publicKeyToken="30ad4fe6b2a6aeed" /&gt;
        &lt;bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.Optimization" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="1.1.0.0" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="WebGrease" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="0.0.0.0-1.5.2.14234" newVersion="1.5.2.14234" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.Helpers" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.WebPages" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-3.0.0.0" newVersion="3.0.0.0" /&gt;
      &lt;/dependentAssembly&gt;
      &lt;dependentAssembly&gt;
        &lt;assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" /&gt;
        &lt;bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" /&gt;
      &lt;/dependentAssembly&gt;
    &lt;/assemblyBinding&gt;
  &lt;/runtime&gt;
  &lt;system.codedom&gt;
    &lt;compilers&gt;
      &lt;compiler language="c#;cs;csharp" extension=".cs" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.CSharpCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:6 /nowarn:1659;1699;1701" /&gt;
      &lt;compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" type="Microsoft.CodeDom.Providers.DotNetCompilerPlatform.VBCodeProvider, Microsoft.CodeDom.Providers.DotNetCompilerPlatform, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" warningLevel="4" compilerOptions="/langversion:14 /nowarn:41008 /define:_MYTYPE=\&amp;quot;Web\&amp;quot; /optionInfer+" /&gt;
    &lt;/compilers&gt;
  &lt;/system.codedom&gt;
  &lt;system.webServer&gt;
    &lt;validation validateIntegratedModeConfiguration="false" /&gt;
    &lt;modules&gt;
      &lt;remove name="ApplicationInsightsWebTracking" /&gt;
      &lt;add name="ApplicationInsightsWebTracking" type="Microsoft.ApplicationInsights.Web.ApplicationInsightsHttpModule, Microsoft.AI.Web" preCondition="managedHandler" /&gt;
    &lt;/modules&gt;
  &lt;/system.webServer&gt;
  &lt;entityFramework&gt;
    &lt;contexts&gt;
      &lt;context type="MVCAppForTests.Models.BookContext, MVCAppForTests" &gt;
        &lt;databaseInitializer type="MVCAppForTests.Models.Initializer, MVCAppForTests"&gt;&lt;/databaseInitializer&gt;
      &lt;/context&gt;
    &lt;/contexts&gt;
    &lt;defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /&gt;
    &lt;providers&gt;
      &lt;provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /&gt;
    &lt;/providers&gt;
  &lt;/entityFramework&gt;
&lt;/configuration&gt;
</code></pre>