MVC Music Store tutorial in VB?

I'm working through the MVC Music Store in Visual Basic (, trying to convert things as I go. I'm heving trouble with some of the lambda expressions in the Views, however. Specifically, on page 53 when the Album editor template is used, I am not seeing my editor template when I use the following code:

Original: <%: Html.EditorFor(model => model.Album, new { Artists = Model.Artists, Genres = Model.Genres}) %>

My VB: <%: Html.EditorFor(Function(model) model.Album, New With { .Artists = Model.Artists, .Genres = Model.Genres}) %>

But the page doesn't show the template at all. I can't find too many useful resources on VB Lambdas to tell whether I am doing this right or not!


i'm trying to rewrite the MVC MusicStore in VB too. Which is not always that simple because the lack of resources. Nevertheless, your code for the Html.EditorFor did the trick and the editor template is shown.

Did you see any errors when trying to access the view?

If you like I can send you my vb project of the MVC MusicStore.

Just let me know.

Need Your Help

UIPanGestureRecognizer not calling End state

ios ipad uicollectionview uipangesturerecognizer uicollectionviewlayout

using UIPanGestureRecognizer we are moving the cells in the UICollectionView

Handle all not handled exceptions

java exception exception-handling

Is it possible to handle (a simple log writing) all not handled exceptions?