Exemple #1
0
 public static void Update(Rio_UserIndexSetting UserIndexSetting)
 {
     using (Entities db = new Entities())
     {
         db.Entry(UserIndexSetting).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
Exemple #2
0
 public static void Insert(Rio_UserIndexSetting UserIndexSetting)
 {
     using (Entities db = new Entities())
     {
         db.Rio_UserIndexSetting.Add(UserIndexSetting);
         db.SaveChanges();
     }
 }