public ManageController() { _context = new SportboardDbContext(); _uow = new UnitOfWork(_context); _userPreferenceRepository = new UserPreferenceRepository(_context); _userRepository = new UserRepository(_context); _imageRepository = new ImageRepository(_context); _deletionRequestRepository = new DeletionRequestRepository(_context); }
public FeedController() { _context = new SportboardDbContext(); _unitOfWork = new UnitOfWork(_context); _imageRepository = new ImageRepository(_context); _feedRepository = new FeedRepository(_context); _postRepository = new PostRepository(_context); _userPreferenceRepository = new UserPreferenceRepository(_context); _userRepository = new UserRepository(_context); _deletionRequestRepository = new DeletionRequestRepository(_context); }
public UnitOfWork(SportboardDbContext context) { _context = context; Feeds = new FeedRepository(_context); Comments = new CommentRepository(_context); Images = new ImageRepository(_context); Posts = new PostRepository(_context); Users = new UserRepository(_context); UserPreferences = new UserPreferenceRepository(_context); DeletionRequests = new DeletionRequestRepository(_context); UserNotifications = new UserNotificationRepository(_context); }
public UserPreferenceBusiness(string connectionString) : base(connectionString) { rep = new UserPreferenceRepository(Connection); }