コード例 #1
0
 public int InsertUpdateContent(ContentsDTO content)
 {
     return(DABase.NewContext().AddStoredProcedure("usp_InsertUpdateContent")
            .AddParameter("Id", content.ID, DbType.Int32)
            .AddParameter("HTMLContent", content.HTMLContent, DbType.String)
            .AddParameter("Description", content.Description)
            .AddParameter("CanEdit", content.CanEdit, DbType.Boolean)
            .AddParameter("Seq", content.Seq, DbType.Int32)
            .ExecuteNonquery());
 }
コード例 #2
0
 public bool InsertUpdateContents(ContentsDTO content)
 {
     return(contentDL.InsertUpdateContent(content) > 0);
 }