Created
March 12, 2021 20:34
-
-
Save rafaelpadovezi/e56f69ba54c2777cde6ff0640fd0f207 to your computer and use it in GitHub Desktop.
Medium - Configuring db context
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder) | |
{ | |
optionsBuilder | |
.UseSqlServer( | |
"Data Source=localhost,1433;Initial Catalog=Timesheet;User Id=sa;Password=Password1") | |
.LogTo(message => Debug.WriteLine(message)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment