Guest User

Untitled

a guest
Oct 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. Class a = new Class() {value = 4};
  2. context.Table1.Add(a);
  3. context.SaveChanges();
  4.  
  5. Class a = new Class() { value = 4 };
  6. context.Table1.Add(a);
  7. context.Table1.Attach(a);
  8. context.SaveChanges();
Add Comment
Please, Sign In to add comment