I'm working through the .net core samples for Entity Framework.
The default samples include the following inside the constructor for the Database Context.
#warning To protect potentially sensitive information in your connection string, you should move it out of source code.
See http://go.microsoft.com/fwlink/?LinkId=723263 for guidance on storing connection strings.
optionsBuilder.UseSqlServer("Server=servername");
It wasn't mentioned in the link as the warning had stated, I have provided this feedback to Microsoft. https://github.com/aspnet/EntityFramework.Docs/issues/1269
Is there a preferred practice for where to store the sql connection string? If the connection string is in appsettings.json it would still be tracked in source code management. Is the best solution to include an untracked file from appsettings.json?