public int GetSubmitCount(IMember owner, int appId)
        {
            String condition = string.Format("AppId={0} and OwnerId={1} and OwnerType='{2}' and Status={3}", appId, owner.Id, owner.GetType().FullName, PostSubmitStatus.Normal);

            return(ContentTempPost.count(condition));
        }
        public int GetSubmitCount(int creatorId, IMember owner, int appId)
        {
            String condition = string.Format("CreatorId={0} and AppId={1} and OwnerId={2} and OwnerType='{3}' ", creatorId, appId, owner.Id, owner.GetType().FullName);

            return(ContentTempPost.count(condition));
        }
Пример #3
0
        public virtual int CountByCreator(long creatorId, IMember owner, long appId)
        {
            String condition = string.Format("CreatorId={0} and AppId={1} and OwnerId={2} and OwnerType='{3}' ", creatorId, appId, owner.Id, owner.GetType().FullName);

            return(ContentTempPost.count(condition));
        }