title: Setting journal mode in SQLite for Entity Framework Core code-first
body: <p>I'm using DBContext on Entity Framework, using a process like <a href="http://ef.readthedocs.org/en/latest/miscellaneous/configuring-dbcontext.html" rel="nofollow">in this tutorial</a> to create the DB.</p>
  
  <pre><code>public class BloggingContext : DbContext
  {
      public DbSet&lt;Blog&gt; Blogs { get; set; }
  
      protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
      {
          optionsBuilder.UseSqlite("Filename=blog.db");
      }
  }
  </code></pre>
  
  <p>and saving using something like:</p>
  
  <pre><code>using (var context = new BloggingContext())
  {
      context.Add(blog);
      await context.SaveChangesAsync();
  }
  </code></pre>
  
  <p>How would I go about setting the Journal Mode to something like WAL? </p>