Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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