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