Beispiel #1
0
 public static void Insert(Rio_Account rio_Account)
 {
     using (Entities db = new Entities())
     {
         db.Rio_Account.Add(rio_Account);
         db.SaveChanges();
     }
 }
Beispiel #2
0
 public static void Update(Rio_Account rio_Account)
 {
     using (Entities db = new Entities())
     {
         db.Entry(rio_Account).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
     }
 }