Code: Select all
if (!optionsBuilder.Options.Extensions.OfType<RelationalOptionsExtension>().Any(ext => !string.IsNullOrEmpty(ext.ConnectionString) || ext.Connection != null))
optionsBuilder.UseSqlServer(@"Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=xxx;Integrated Security=True;Persist Security Info=True");
This behavior is not good for us. I can't adjust the options to skip this step.
Is there any ways to achieve this?