I understand that this attribute should be set in my Model.Designer.cs, before the partial class declaration. How ever this will be overridden when the model is updated at some poing of time.. How do we handle it?
you cannot add this to the designer file as this is autogenerated code you need abuddy class see
8. Using ASP.NET Dynamic Data
See my blog C# Bits | Twitter @sjnaughton Always seeking an elegant solution.
sjnaughton
All-Star
27320 Points
5459 Posts
MVP
Re: Issue in display of foreign key column when Scaffolding is enabled
Mar 20, 2012 07:42 PM|LINK
Always seeking an elegant solution.