Hi,
I'm working through the MVC Music Store in Visual Basic (mvcmusicstore.codeplex.com), 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!