public AlbumsController()
 {
     this.db = new AudioSystemDbContext();
     this.songs = new EfGenericRepository<Song>(this.db);
     this.albums = new EfGenericRepository<Album>(this.db);
     this.artists = new EfGenericRepository<Artist>(this.db);
 }
Ejemplo n.º 2
0
 public AlbumsController()
 {
     this.db      = new AudioSystemDbContext();
     this.songs   = new EfGenericRepository <Song>(this.db);
     this.albums  = new EfGenericRepository <Album>(this.db);
     this.artists = new EfGenericRepository <Artist>(this.db);
 }
Ejemplo n.º 3
0
 public static void Initialize()
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <AudioSystemDbContext, Configuration>());
     AudioSystemDbContext.Create().Database.Initialize(true);
 }
Ejemplo n.º 4
0
 public CountriesController()
 {
     this.db        = new AudioSystemDbContext();
     this.countries = new EfGenericRepository <Country>(this.db);
 }