title: Entity Framework 6 & SQL Server reserved keyword to lowercase during generation of SQL
body: <p>We are using other project DLL to your project. For the reference project DLL, SQL Server reserved keyword to be lower case during generation of SQL in Entity Framework 6.</p>
  
  <p>We had tried many ways after that we got only one solution using <code>IDbCommandInterceptor</code> as below:</p>
  
  <pre><code>public class CustomEFInterceptor : IDbCommandInterceptor
  {
      public void NonQueryExecuting(DbCommand command, DbCommandInterceptionContext&lt;int&gt; interceptionContext)
      {
          AppendToLog(command);
      }
  
      private void AppendToLog(DbCommand command)
      {
          string sqlStr = new StringBuilder(command.CommandText).Replace("INSERT", "insert").Replace("VALUES", "values")
                                                    .Replace("UPDATE", "update").Replace("SET", "set")
                                                    .Replace("DELETE", "delete")
                                                    .Replace("WHERE", "where")
                                                    .Replace("\r\n", " ").ToString();
          //// ..... Added to DB Table and Executed during some other process.
      }
  }
  </code></pre>
  
  <p>Is there is any other solution using EF6 Model Builder Conventions or configuration?</p>
  
  <pre><code>public partial class TestEntities : DbContext
  {
      public TestEntities() : base("name=TestEntities3")
      {
      }
  
      protected override void OnModelCreating(DbModelBuilder modelBuilder)
      {
          modelBuilder.Conventions.Remove&lt;PluralizingTableNameConvention&gt;();
      }
  }
  </code></pre>
  
  <p>Thanks in advance.</p>