public void UpdateThemeType(skThemeType ThemeTypeObject) { dtTheme ThemeToUpdate = DB.dtThemes.Single(x => x.thID == ThemeTypeObject.ID); ThemeToUpdate.Name = ThemeToUpdate.Name; ThemeToUpdate.Description = ThemeToUpdate.Description; ThemeToUpdate.ThemXML = ThemeToUpdate.ThemXML; DB.SubmitChanges(); }
public void AddThemeType(skThemeType ThemeTypeObject) { dtTheme newthem = new dtTheme { Description = ThemeTypeObject.Description, Name = ThemeTypeObject.Name, ThemXML = ThemeTypeObject.ThemeXML }; DB.dtThemes.InsertOnSubmit(newthem); DB.SubmitChanges(); }