Skip to content

Instantly share code, notes, and snippets.

@dcomartin
Created May 31, 2018 20:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dcomartin/eeb16585458d27af01f15a0cd46886ea to your computer and use it in GitHub Desktop.
Save dcomartin/eeb16585458d27af01f15a0cd46886ea to your computer and use it in GitHub Desktop.
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
optionsBuilder
.UseSqlServer(@"Server=(localdb)\mssqllocaldb;Database=EFQuerying;Trusted_Connection=True;")
.ConfigureWarnings(warnings => warnings.Throw(RelationalEventId.QueryClientEvaluationWarning));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment