Execute SQL script using Entity Framework Code First in ASP.Net

on Jun 07, 2020 02:57 AM

How can I run the sql code generated by EF Code First in VB.Net, without having to execute the enable-migrations, ADD-MIGRATION INITIAL and UPDATE-DATABASE commands
Well, the generated code will include it in the main menu of the application so that I can create the database or update it if it exists.

Taking as reference the article of the following link:


Any ideas?

Download FREE API for Word, Excel and PDF in ASP.Net: Download