public void CreateTable(IApplicationBuilder app, IWebHostEnvironment env) { // Create todo schema var connection = app.ApplicationServices.GetService <IDbConnection>(); var logger = app.ApplicationServices.GetService <ILogger>(); SqlQueries.CreateDatabase(connection, logger); }