/// <summary> /// Update repository object /// </summary> /// <param name="ro"></param> public void Update(CommonData.ReposObject ro) { using (var db = new DaContext(_options)) { db.Update <ReposObject>(ro); db.SaveChanges(); } }
/// <summary> /// Update repository object /// </summary> /// <param name="ro"></param> public void Update(CommonData.ReposObject ro) { Repository db_repos = new Repository() { ReposID = ro.ReposID, Key = ro.Key != null ? ro.Key : "", Data = ro.Data != null ? ro.Data : "" }; _da.DbContext.Update(db_repos); }