views:

161

answers:

4

How can we add IntelliSense to visual studio in time of nhibernate mapping file editing?

A: 

You need to tell Visual Studio which XML schema to use for these mapping files. Maybe this is what you need:

http://blog.benday.com/archive/2006/01/15/3646.aspx

Slavo
+1  A: 

see http://jameskovacs.com/2007/10/16/enabling-intellisense-for-nhibernate/

Jimmy Chandra
That's NOT the recommended way to do it.
Diego Mijelshon
That link is broken, try this (for VS2010) instead: http://www.jameswampler.com/index.php/2010/06/03/adding-the-nhibernate-schema-files-to-visual-studio-2010/
David McClelland
+2  A: 

Include the xsd files that come with NHibernate as part of your solution (either within a project, or as "Solution Files").

That's it.

Diego Mijelshon
A: 

...or just use Fluent.Nhibernate.

dmonlord