Search code examples
visual-studioentity-frameworkcsc

How to automatically call Entity Framework's update from database without Visual Studio


I have a WCF Data Service service that uses Entity Framework to provide data. When the database changes, I have to use the EDMX editor of Visual Studio to call Update from database to match the data classes.
Is it possible to call a csc compiling together with an update from the database first? I'd like to avoid the dependency of using VS.


Solution

  • Yes, code generation is possible using a command-line tool.
    Have a look at the edmgen.exe page.