Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Bind exclude and scaffold false in Asp.net MVC
Srikanth Reddy
7y
386
1
Reply
What's the use of Bind(Exclude='propname') and scaffold(false) attributes in below class ?
[Bind(Exclude = "AlbumId")]
public class Album
{
[ScaffoldColumn(false)]
public int AlbumId { get; set; }
[DisplayName("Genre")]
public int GenreId { get; set; }
}
If scaffold(false) I know that that property won't be binded to view(basically we take for primary key).
Then what about
Bind(Exclude='propname') ?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to Use Time Picker In Mvc
What we can do with date and time offset data