public virtual void Delete(ContentSection section) { db.delete(section); ContentPost.updateBatch("SaveStatus=" + SaveStatus.Delete + ", SectionId=0", "SectionId=" + section.Id); }
public virtual void SetStatus_Focus(string ids) { ContentPost.updateBatch("set PickStatus=" + PickStatus.Focus, "Id in (" + ids + ")"); }
public virtual void DeleteBatch(string ids) { ContentPost.updateBatch("set SaveStatus=" + SaveStatus.Delete, "Id in (" + ids + ")"); ContentPostSection.updateBatch("SaveStatus=" + SaveStatus.Delete, "PostId in(" + ids + ")"); }
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 + ")"); }