Persistance library for ServiceRegistry using EntityFramework.
public void ConfigureServices(IServiceCollection services)
{
var migrationsAssembly = typeof(Startup).GetTypeInfo().Assembly.GetName().Name;
services.AddServiceRegistry()
// this adds the persistence to EF
.AddRegistryStore(options =>
{
options.ConfigureDbContext = builder =>
builder.UseSqlServer(Configuration.GetConnectionString("default"),
sql => sql.MigrationsAssembly(migrationsAssembly));
});
}