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