예제 #1
0
 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);
 }
예제 #2
0
 public bool InsertForumSummary(ForumSummary forumSummary)
 {
     return SqlHelper.Insert(forumSummary);
 }