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)
 {
 }
Beispiel #3
0
 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>();
 }
Beispiel #6
0
 public TrackRepository(IPostgreSQLDataContext context) : base(context)
 {
     this.context = context;
     this.set     = context.Set <Track>();
 }