Esempio n. 1
0
        public virtual int CountByCreator(int creatorId, IMember owner, int appId)
        {
            String condition = string.Format("CreatorId={0} and OwnerId={1} and OwnerType='{2}' and AppId={3} and SaveStatus={4}", creatorId, owner.Id, owner.GetType().FullName, appId, SaveStatus.Normal);

            return(ContentPost.count(condition));
        }
Esempio n. 2
0
 public virtual int CountByApp(int appId)
 {
     return(ContentPost.count("AppId=" + appId + " and SaveStatus=" + SaveStatus.Normal));
 }