EF codefirst automatic database generation

Sep 10, 2011 at 2:03 PM

Hello, Just curious as I look through your project, are you manually generating both your database fields and your model class? Do you ever use one to automatically generate the other? Is there a benefit to not auto-generating database using EF?

Thanks!

Coordinator
Sep 10, 2011 at 5:48 PM
Edited Sep 10, 2011 at 5:51 PM

hi,

I wrote a sql script for the DB

I didn't used the db autogeneration, 

benefits ? it depends on your needs.

I think this way I got the minimum amount of configuration code needed,  I didn't configured each property for each EF Entity (size, keys stuff)

you can try to modify it and do autogeneration and you'll see if you have any benefits

Sep 10, 2011 at 6:43 PM

Great, thank you!