开发者

Visual studio refactoring a property of a viewmodel does not reflect in the View?

I have a simple ViewModel class like

public class TestViewModel
{
    public String Information { get; set; }
}

My View inherits from it and I got Intellisense kicking in. So far so good.

I have written these for tests in the View:

<%= Html.Encode(Model.Information) %>
-- <%= Html.Label("Information") %>
-- <%= Html.LabelFor(m => m.Information) %>
-- <%= Html.DisplayFor(m => m.Information) %>

I simply rename the property Information to Information2 and let Visual Studio, or Resharper 5, do its magic. However what I experience is that none of the properties in开发者_JS百科 the View get adjusted resulting in none functioning code.

I was under the impression that refactoring would also update the view(s)? Am I doing something wrong or turned off some checkbox by accident in Visual Studio?


Works on my machine! ;)

It think the correct answer is: http://www.jetbrains.com/support/resharper/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜