Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this questionI'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,开发者_StackOverflow社区
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.
精彩评论