Created
November 3, 2020 12:49
-
-
Save shassaan/44c79cf9723d1661bd7c44520bb96025 to your computer and use it in GitHub Desktop.
ContextConsumer
This file contains 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
using (var ctx = new SchoolContext()) | |
{ | |
var stud = new Student() | |
{ | |
StudentName = "Bill" | |
}; | |
ctx.Students.Add(stud); | |
ctx.SaveChanges(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment