1
in this tutorialのようなプロセスを使用して、Entity FrameworkでDBContextを使用してDBを作成しています。SQLite for Entity Frameworkコアコードファーストでのジャーナルモードの設定
public class BloggingContext : DbContext
{
public DbSet<Blog> Blogs { get; set; }
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder.UseSqlite("Filename=blog.db");
}
}
とのようなもの使用して保存:どのように私はWALのようなものにジャーナルモードの設定については行くだろう
using (var context = new BloggingContext())
{
context.Add(blog);
await context.SaveChangesAsync();
}
を?