Пример #1
0
        public ArtistsData(IArtistsDbContext context)
        {
            this.context = context;

            this.Artists = new Repository <Artist>(this.context);
            this.Songs   = new Repository <Song>(this.context);
            this.Albums  = new Repository <Album>(this.context);
        }
Пример #2
0
 public Repository(IArtistsDbContext context)
 {
     this.context = context;
     this.set     = context.Set <T>();
 }
Пример #3
0
 public ArtistsSystemData(IArtistsDbContext context)
 {
     this.context      = context;
     this.repositories = new Dictionary <Type, object>();
 }