This project is read-only.

Artist DropDownList in the Create View

Sep 29, 2011 at 3:46 PM

Hi everyone,

First of all I want to thank you for this great project that personnally I found very usefull and allowed me to work with the ASP.NET MVC and the EF which I belive are two great pieces that lacks to the .NET Framework and finally there ae here!


1) Now I followed you sample, but when I arrived to the StoreManagerController, I find that the view does not include the dropdownlist of ArtistId, and the Index action in the controller does only contain: db.Albums.Include(a => a.Genre); (.Include(a => a.Artist) was not included)

2) I thinked that EF Code First pattern consists in creating classes (that have tables corrspondance), and that when we run the application, the DataBase is created on the fly? Is that true? If yes, i did'nt find any database created. So haw does it works, all that staff is on the memory?

3) If we wanted to work with EF but ommitting the Code First pattern, i.e we have an existing DataBase and we want to work with this DataBase and create classes that maps to theses tables, how can I do this?

4) When membership security is a good choice, and in a real world environement, how could I create the ASP.NET Memebership DataBase ?


Thank you very much!