예제 #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>();
 }