title: Database context didn't see any records in datatable in base
body: <p>I'm creating  an ASP.NET MVC application which uses a PostgreSql database. Model classes are in a different class library. For access to database I'm using Entity Framework + Npgsql.Entityframework in the class library. Also i added same links to main project. Configuration settints are in web.config of main project:</p>
  
  <pre><code>&lt;configSections&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;entityFramework&gt;
      &lt;defaultConnectionFactory type="Npgsql.NpgsqlServices, Npgsql.EntityFramework" /&gt;
      &lt;providers&gt;
          &lt;provider invariantName="Npgsql" 
                    type="Npgsql.NpgsqlServices, Npgsql.EntityFramework" /&gt;
      &lt;/providers&gt;
  &lt;/entityFramework&gt;
  &lt;connectionStrings&gt;
      &lt;add name="NpgsqlContext" 
           providerName="Npgsql" 
           connectionString="Server=127.0.0.1;User Id=BaseId;Password=BasePass;Port=5432;Database=Base;" /&gt;
  &lt;/connectionStrings&gt;
  &lt;system.data&gt;
      &lt;DbProviderFactories&gt;
          &lt;add name="Npgsql Data Provider" 
               invariant="Npgsql"
               support="FF" 
               description=".Net Framework Data Provider for Postgresql"
               type="Npgsql.NpgsqlFactory, Npgsql" /&gt;
      &lt;/DbProviderFactories&gt;
  &lt;/system.data&gt;
  </code></pre>
  
  <p>My database context has right connectionn string
  (<code>PORT=5432;KRBSRVNAME=name;TIMEOUT=15;POOLING=True;MINPOOLSIZE=1;MAXPOOLSIZE=20;COMMANDTIMEOUT=20;COMPATIBLE=2.2.7.0;HOST=127.0.0.1;USER ID=BasePass;PASSWORD=BasePass;DATABASE=Base</code>),
  but didn't see any records in datatable in base. Meanwhile records are there. 
  I created database and some tables in pgAdmin. To access to tables i use classes:</p>
  
  <pre><code>public class NpgsqlContext : DbContext
      {
          public NpgsqlContext(): base(nameOrConnectionString: "NpgsqlContext") 
          {
          }
  
          public DbSet&lt;BaseArticle&gt; BaseArticles { get; set; }
      }
  
      [Table("ARTICLE", Schema = "public")]
      public class BaseArticle
      {
          [Key]
          [Column("ID")]
          public int Id { get; set; }
  
          [Column("DATETIME")]
          public DateTime DateTime { get; set; }
  
          [Column("TITLE")]
          public string Title { get; set; }
  
          [Column("BODY")]
          public string Body { get; set; }
      }
  </code></pre>
  
  <p>NpgsqlContext object is created normally, but DbSet BaseArticle's count equals 0.</p>
  
  <p>Where can i have an error?</p>
  
  <p>And also - in ASP.NET MVC generally impossible to achieve loose coupling between the parts of the application? </p>