Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class NorthwindSlimContextFactory : IDesignTimeDbContextFactory<NorthwindSlimContext>
public NorthwindSlimContext CreateDbContext(string[] args)
var optionsBuilder = new DbContextOptionsBuilder<NorthwindSlimContext>();
optionsBuilder.UseSqlite("Data Source=northwindslim.db");
return new NorthwindSlimContext(optionsBuilder.Options);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment