Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

EF Save changes

using (var context = new BookStore())
{
    Author author = new Author()
    {
        FirstName = "Mark",
        LastName = "Johny",
    };
    
    context.Authors.Add(author);
    context.SaveChanges();
}
Source by entityframework.net #
 
PREVIOUS NEXT
Tagged: #EF #Save
ADD COMMENT
Topic
Name
4+7 =