public DataUnitOfWork( IPostgreSQLDataContext postgreSQLDataContext, IFileSystemDataContext fileSystemContext, IUserRepository userRepository, IWalletRepository walletRepository, ITrackRepository trackRepository, IPlaylistRepository playlistRepository) { this.postgreSQLDataContext = postgreSQLDataContext; this.fileSystemContext = fileSystemContext; this.UserRepository = userRepository; this.WalletRepository = walletRepository; this.TrackRepository = trackRepository; this.PlaylistRepository = playlistRepository; }
public WalletRepository(IPostgreSQLDataContext context) : base(context) { }
public UserRepository(IPostgreSQLDataContext context) : base(context) { }
public PlaylistRepository(IPostgreSQLDataContext context) : base(context) { this.context = context; this.set = context.Set <PlayList>(); }
public GenericRepository(IPostgreSQLDataContext context) { this.context = context; this.set = context.Set <T>(); }
public TrackRepository(IPostgreSQLDataContext context) : base(context) { this.context = context; this.set = context.Set <Track>(); }