示例#1
0
        public dtoUserActivityStatistic(dtoActivityStatistic dto, Int32 userId)
        {
            this.Id       = dto.Id;
            this.parentId = dto.parentId;
            this.Name     = dto.Name;

            this.UserId = userId;

            this.SubActivities = (from item in dto.SubActivities select new dtoUserSubActivityStatistic(item, userId)).ToList();
        }
示例#2
0
        public dtoUserActivityStatistic(dtoActivityStatistic dto, litePerson user)
        {
            this.Id       = dto.Id;
            this.parentId = dto.parentId;
            this.Name     = dto.Name;

            this.User = user;

            this.SubActivities = (from item in dto.SubActivities select new dtoUserSubActivityStatistic(item, user)).ToList();
        }