public static void Initialize()
 {
     Database.SetInitializer(new MigrateDatabaseToLatestVersion <YoutubePlaylistsDbContext, Configuration>());
     YoutubePlaylistsDbContext.Create().Database.Initialize(true);
 }
Exemple #2
0
 public Search()
 {
     this.dbContext = new YoutubePlaylistsDbContext();
 }
 public PlaylistDetails()
 {
     this.dbContext = new YoutubePlaylistsDbContext();
 }
Exemple #4
0
 public CategoryDetails()
 {
     this.dbContext = new YoutubePlaylistsDbContext();
 }
Exemple #5
0
 public Home()
 {
     this.dbContext = new YoutubePlaylistsDbContext();
 }
 public EditCategories()
 {
     this.dbContext = new YoutubePlaylistsDbContext();
 }