May 30, 2010 at 3:15 PM
Edited May 30, 2010 at 3:17 PM
I believe you are correct--despite the fact the the source code also contains this syntax.
I tried it both ways, and the StoreManager Index page works the same with each,
when using the
syntax, clicking on "Edit" (on the StoreManager Index page) results in this kind of error:
The model item passed into the dictionary is of type 'System.Data.Objects.ObjectSet`1[storeDB.Models.Album]', but this dictionary requires a model item of type 'MvcMusicStore.ViewModels.StoreManagerViewModel'.
This error seems to make sense, since our Edit template inherits the StoreManagerViewModel and not the storeDB model.