标签: asp.net-mvc model-binding
我有一个对象,其所有值都将在代码中系统生成,并且没有用户(黑客!!)应该能够修改其任何值。所以在Bind [Bind(Include = "")]列表中定义了一个空列表,如下所示: -
[Bind(Include = "")]
[MetadataType(typeof(Technology_Validation))] [Bind(Include = "")] public partial class Technology
但是我不确定在Include之后传递空列表,意味着模型绑定器将排除所有属性,我无法测试它?