philzhou

导航

05 2012 档案

Proposed solution for the NHibernate exception “Column ‘Reserved Word’ does not belong to table ReservedWords.”
摘要:原文 已被墙When I updated my NHibernate assembly to version 2.1.0.GA and tried to configure it against my MySQL installation with the .NET Connector v 5.2.7 I got an exception that I hadn’t encounter before:System.ArgumentException : Column ‘Reserved Word’ does not belong to table ReservedWords.After som 阅读全文

posted @ 2012-05-29 10:39 philzhou 阅读(575) 评论(1) 推荐(1)

EF Code First - Add-Migration fails with Could not load file or assembly error
摘要:EF Code First - Add-Migration fails with Could not load file or assembly errorHello,I just hooked up a new project to use EF Migrations features and am encountering errors trying to add new migrations. I was successful at enabling migrations and getting InitialCreate script created, but when I try t 阅读全文

posted @ 2012-05-09 17:09 philzhou 阅读(1298) 评论(1) 推荐(0)

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 阅读(704) 评论(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 阅读(1087) 评论(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 阅读(567) 评论(0) 推荐(0)