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); }
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); }
public static void Initialize() { Database.SetInitializer(new MigrateDatabaseToLatestVersion <AudioSystemDbContext, Configuration>()); AudioSystemDbContext.Create().Database.Initialize(true); }
public CountriesController() { this.db = new AudioSystemDbContext(); this.countries = new EfGenericRepository <Country>(this.db); }