public MovieRepoDB(Data.MovieDBContext db) { _db = db ?? throw new ArgumentNullException(nameof(db)); // code-first style, make sure the data db.Database.EnsureCreated(); }
public MovieRepoDB(Data.MovieDBContext db) { _db = db ?? throw new ArgumentNullException(nameof(db)); // code-first style, make sure the data db.Database.EnsureCreated(); }