天道酬勤,学无止境

nhibernate-validator

NHibernate Validator not integrating with Fluent NHibernate

I'm having some trouble getting NHV to work with Fluent NHibernate. A unit test that I have that has an entity that SHOULD be failing validation ends up throwing an ADO exception. I have NHV configured the following way: private static void Init() { _SessionFactory = Fluently.Configure() .Database(MsSqlConfiguration.MsSql2005.ConnectionString(connectionString) .ShowSql()) .Mappings(m => m.FluentMappings.AddFromAssemblyOf<SessionFactory>() .ExportTo(pathToExportMappingsTo)) .ProxyFactoryFactory("NHibernate.ByteCode.LinFu.ProxyFactoryFactory, NHibernate.ByteCode.LinFu") .ExposeConfiguration

2021-04-30 14:05:47    分类:问答    nhibernate   fluent-nhibernate   nhibernate-validator