Created
October 16, 2018 00:40
-
-
Save dcomartin/197f47363211aaeabe22833675bfb50f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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