Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyTable
- {
- public int Id { get; set; }
- public Nullable<int> MyInt { get; set; }
- }
- void UpdateRow(MyTable currentRow)
- {
- MyTable rowToUpdate = transaction.entity.Find(currentRow.Id);
- rowToUpdate.MyInt = currentRow.MyInt;
- transaction.Context.SaveChanges();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement