*Solved, see Update below
I have a class with the two properties listed below:
[HiddenInput(DisplayValue = false)]
public int ProductId { get; set; }
[Required(ErrorMessage = "Please enter a product name")]
public string Name { get; set; }
When I run the solution on one machine I do not see the EditorFor ProductId when I navigate to the associated page -- When I run it on another machine (the same pull from github) I do see it (and am able to edit it). I do not want to be able to see it.
The only significant thing I think could be different on each machine is the actual database itself.
Why am I able to see my ProductId property editor on one machine but not on the other while using the same code?
Note
MVC renders the view differently on each machine (the generated HTML is different - this reflects the discrepancy above).
Update
Solved the problem, see my answer below.