예제 #1
0
        public void EditCss(Tbl_Sitestyle_Css obj)
        {
            var result = (from a in db.Tbl_Sitestyle_Csses
                          where a.Fld_Sitestyle_Css_Id == obj.Fld_Sitestyle_Css_Id
                          select a).SingleOrDefault();

            result.Fld_Sitestyle_Css_LanguageId = obj.Fld_Sitestyle_Css_LanguageId;
            result.Fld_Sitestyle_Css_Name       = obj.Fld_Sitestyle_Css_Name;
            db.SubmitChanges();
        }
예제 #2
0
 public void AddCss(Tbl_Sitestyle_Css obj)
 {
     db.Tbl_Sitestyle_Csses.InsertOnSubmit(obj);
     db.SubmitChanges();
 }