/// <summary> /// It's important to have this methods defined as follows in order to prevent issues with EF /// migrations https://docs.microsoft.com/en-us/ef/core/miscellaneous/cli/dbcontext-creation /// </summary> public static IWebHost BuildWebHost(string[] args) => MicroserviceHost .Build <Startup>(args);