摘要: 废话不说直接上代码// 首先实现ValidatorFactory public class DependencyResolverValidatorFactory : ValidatorFactoryBase { public override IValidator CreateInstance(Type validatorType) { return DependencyResolver.Current.GetService(validatorType) as IValidator; } }//配置FluentV... 阅读全文
posted @ 2014-01-04 22:43 向晚 阅读(2941) 评论(2) 推荐(0) 编辑