create SP in BD from EF

0

I know that from Entity Framework you can create a model and based on this model create a DB in a Database Management System, but in my case I require that at the time of creating the model you can also create functions that later based on this model you can create a BD with your Stored Procedures included, can that be? How is it done?

    
asked by RSillerico 07.07.2016 в 17:52
source

1 answer

0

The only option I know related to an edmx is the generation of a script that creates the db based on the model

But this option Generate Database Script from Model... is quite limited.

If you want to generate code that defines procedure in the database you will have to implement migrations and that implies using Code First

Code First Migrations

Migrations if it allows you to generate code that defines the structure of the db that you can extend to create other elements.

    
answered by 07.07.2016 / 23:07
source