I have a property in dto that I don't want modelbinder / view to use get? Is there an attribute that I can decorate to stop them from polling?
thank
public class Model { [Bindable(false)] // this is the attribute you can use... public int ModelId { get; set; } }
See the Include and Exclude properties in the BindAttribute:
http://msdn.microsoft.com/en-us/library/system.web.mvc.bindattribute_members.aspx
Source: https://habr.com/ru/post/1746593/More articles:embedded developer. the question is how to get rid of the malfunctioning opening of the serial port? - c ++Pagination in a rich domain model - zend-frameworkXmlDataDocument is deprecated, any thoughts on replacing it? - visual-studioAny suggestions for improving this style for BDD / TDD? - c #How to run bat file from C # program? - functionHow to select text automatically inside a UIAlertView text field - highlightingSearch Algorithm (with already implemented sorting algorithm) - javaDoctrine + SQL Server Stored Procedures - databaseUnable to customize Explorer Explorer project context menu in VS 2010 - visual-studio-2010Qt and auto_ptr - c ++All Articles