public bool DeleteForumsSummary(ForumSummary forumSummary) { var pg = new PredicateGroup { Operator = GroupOperator.And, Predicates = new List<IPredicate>() }; pg.Predicates.Add(Predicates.Field<ForumSummary>(f => f.Id, Operator.Eq, forumSummary.Id)); return SqlHelper.Delete<ForumSummary>(pg); }
public bool InsertForumSummary(ForumSummary forumSummary) { return SqlHelper.Insert(forumSummary); }