コード例 #1
0
        public void EditMetadata(Tbl_Sitestyle_Metadata obj)
        {
            var result = (from a in db.Tbl_Sitestyle_Metadatas
                          where a.Fld_Sitestyle_Metadata_Id == obj.Fld_Sitestyle_Metadata_Id
                          select a).SingleOrDefault();

            result.Fld_Sitestyle_Metadata_Text       = obj.Fld_Sitestyle_Metadata_Text;
            result.Fld_Sitestyle_Metadata_LanguageId = obj.Fld_Sitestyle_Metadata_LanguageId;
            db.SubmitChanges();
        }
コード例 #2
0
 public void AddMetadata(Tbl_Sitestyle_Metadata obj)
 {
     db.Tbl_Sitestyle_Metadatas.InsertOnSubmit(obj);
     db.SubmitChanges();
 }