philzhou

导航

2012年5月8日 #

nopCommerce : Updating an existing entity. How to add a new property.

摘要: Updating an existing entity. How to add a new property.This tutorial covers how to add a property to the Affiliate entity that ships with the nopCommerce source code.The data modelEntities will have two classes that are used to map records to a table. The first class defines the properties, fields, 阅读全文

posted @ 2012-05-08 21:07 philzhou 阅读(600) 评论(0) 推荐(0) 编辑

asp.net mvc FluentValidation 的使用

摘要: 原文 Create a new ASP.NET MVC 3 project using the default Visual Studio Template Download the latest FluentValidation.NET Reference the FluentValidation.dll and FluentValidation.Mvc.dll assemblies (be... 阅读全文

posted @ 2012-05-08 16:07 philzhou 阅读(1084) 评论(0) 推荐(0) 编辑

NopCommerce 自定义DataAnnotation DisplayAttribute

摘要: System.dll(.Net Framework 4.0 )中已有DisplayNameAttribute 定义,被该标签注释的Model属性,在View中使用Html.LabelFor便可获取设置的字段名称。namespace System.ComponentModel{ // 摘要: // 指定属性、事件或不采用任何参数的公共 void 方法的显示名称。 [Attr... 阅读全文

posted @ 2012-05-08 09:57 philzhou 阅读(564) 评论(0) 推荐(0) 编辑