Skip to content

Microsoft SQL Server

To setup EventFlow Microsoft SQL Server integration, install the NuGet package EventFlow.MsSql and add this to your EventFlow setup.

1
2
3
4
5
6
7
8
9
public void ConfigureServices(IServiceCollection services)
{
  services.AddEventFlow(ef =>
  {
    ef.ConfigureMsSql(MsSqlConfiguration.New
      .SetConnectionString(@"Server=.\SQLEXPRESS;Database=MyApp;User Id=sa;Password=???"))
    .UseMsSqlEventStore();
  });
}

After setting up Microsoft SQL Server support in EventFlow, you can continue to configure it.