Step 1.) Install Visual Studio 2012 Update 2
Step 2.)Go to Tools >> Extensions and Updates
- Install "Git Source Control Provider" and "Visual Studio Tools for Git"
@Html.TextBoxFor(m => m.YourProperty, new { @class = "MyClass", @Value = string.Format("{0:C}",Model.YourProperty) })
You can do this using EditorFor and the DisplayFormat annotation. However, you loose the ability to add class to your textbox.
int? rc = myContext.myProc(myParameter);
myContext.Save();
int? rc = myContext.myProc(myParameter).FirstOrDefault();
myContext.Save();