public PostDataService( IEntityContext context, IPostCacheService postCacheService, IUserLikesDataService userLikesDataService, IUserLikeCacheService userLikesCacheService, IUserFollowCacheService userFollowCacheService, IGroupDataService groupDataService, IGroupCacheService groupCacheService, IReviewCacheService reviewCacheService, IReviewDataService reviewDataService, ICommentCacheService commentCacheService, ICommentDataService commentDataService, IOptions <UserProfileImageSettings> userProfileImageSettings ) { _context = context; _postCacheService = postCacheService; _userLikesCacheService = userLikesCacheService; _userLikesDataService = userLikesDataService; _userFollowCacheService = userFollowCacheService; _groupDataService = groupDataService; _groupCacheService = groupCacheService; _reviewCacheService = reviewCacheService; _reviewDataService = reviewDataService; _commentCacheService = commentCacheService; _commentDataService = commentDataService; _userProfileImageSettings = userProfileImageSettings.Value; }
public ReviewDataService( IEntityContext context, IReviewCacheService reviewCacheService, IUserLikeCacheService userLikeCacheService, ICommentCacheService commentCacheService, ICommentDataService commentDataService, IUserLikesDataService userLikeDataService ) { _context = context; _dbEntitySet = _context.Set <Review>(); _userEntitySet = _context.Set <UserInfo>(); _userReviewLikeSet = _context.SetChild <UserReview>(); _commentSet = _context.Set <Comment>(); _reviewCacheService = reviewCacheService; _userLikeCacheService = userLikeCacheService; _commentCacheService = commentCacheService; _commentDataService = commentDataService; _userLikeDataService = userLikeDataService; }