I am reading this book, and it tries to use initializer to Create the DB each time the application runs, so the code snippet is like this:
protected void Application_Start() { Database.SetInitializer(new DropCreateDatabaseAlways<MusicStoreDB>()); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); } I can't understand this part:
new DropCreateDatabaseAlways<MusicStoreDB>() What is this syntax? what does <MusicStoreDB>() mean?
I know it's not a fancy question, but I need help here.
Thanks.
CodeFirstit means recreate the database whenever the application starts,MusicStoreDBis the database