Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
var connection = new SqliteConnection("DataSource=:memory:");
connection.Open();
var options = new DbContextOptionsBuilder<MyDbContext>()
.UseSqlite(connection)
.Options;
var dbContext = new MyDbContext(options);
dbContext.Database.EnsureCreated();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.