Skip to content

Instantly share code, notes, and snippets.

@shassaan
Created November 3, 2020 12:49
Embed
What would you like to do?
ContextConsumer
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