Advertisement
Guest User

Untitled

a guest
Mar 24th, 2017
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.34 KB | None | 0 0
  1. using HR.Data;
  2.  
  3. namespace HR
  4. {
  5.     public static void Main(String[] args)
  6.     {
  7.         using (var ctx = new TeachersRepository())
  8.         {
  9.             var dbs = ctx.GetByTeacherRank(0);
  10.             dbs.Resigned = true;
  11.            
  12.             ctx.SaveWithRegret(dbs);
  13.             ctx.ReallySaveThisTime(dbs);
  14.         }
  15.     }
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement