Example #1
0
 public virtual void Delete(ContentSection section)
 {
     db.delete(section);
     ContentPost.updateBatch("SaveStatus=" + SaveStatus.Delete + ", SectionId=0", "SectionId=" + section.Id);
 }
Example #2
0
 public virtual void SetStatus_Focus(string ids)
 {
     ContentPost.updateBatch("set PickStatus=" + PickStatus.Focus, "Id in (" + ids + ")");
 }
Example #3
0
 public virtual void DeleteBatch(string ids)
 {
     ContentPost.updateBatch("set SaveStatus=" + SaveStatus.Delete, "Id in (" + ids + ")");
     ContentPostSection.updateBatch("SaveStatus=" + SaveStatus.Delete, "PostId in(" + ids + ")");
 }
Example #4
0
 public virtual void SetStatus_Normal(string ids)
 {
     ContentPost.updateBatch("set PickStatus=" + PickStatus.Normal, "Id in (" + ids + ")");
 }
 public virtual void UpdateSection(String ids, int sectionId)
 {
     ContentPost.updateBatch("set SectionId=" + sectionId, "Id in (" + ids + ")");
 }