fluentnhibernate and nhibernate validator version error
        Posted  
        
            by Thad
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Thad
        
        
        
        Published on 2010-03-12T15:35:28Z
        Indexed on 
            2010/03/12
            15:37 UTC
        
        
        Read the original article
        Hit count: 789
        
We have a project using FluentNibernate to map the entities. Now I need to add some format validation to these maps. For Nullable, Length and such we are currently using the mappings. I added NHibernate Validator to the project, but received a compile time error about needing NHibernate version 2.1.2.4000. So I upgraded to that version just to get a run-time error stating that it could not find NHibernate 2.1.0.4000. Could I write extension methods to do the validation using FluentNibernate? Do I have to recompile both using the same version of NHibernate? The preferred method would be to use a release of these. Any other device would appreciated.
© Stack Overflow or respective owner