Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Bind exclude and scaffold false in Asp.net MVC
Srikanth Reddy
Jan 25 2017 3:03 AM
358
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') ?
Upload Source Code
Select only zip and rar file.
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