/// <summary> /// Update localization. /// </summary> /// <param name="localization"></param> protected static void UpdateLocalization(Canon.Data.Localization localization) { CanonDataContext db = Cdb.Instance; if (db.Localizations.GetOriginalEntityState(localization) == null) { db.Localizations.Attach(localization, false); db.Refresh(RefreshMode.KeepCurrentValues, localization); } db.SubmitChanges(); }