Recently, I wanted to change the software development tool. I chose the C #, the map tool selected NHibernate. This stuff is not bad in J2EE, downloading several versions from the official website, then follow the "requirements of the" Document "document according to the
Bes have to be understood, in Google, I found this problem is a more headache for beginners. I saw a flying eagle and Zhang Laosan, I have studied in this area. After studying their blog, the problem finally solved. If the properties of the * .hbm.xml file are set to "Content", you only need to put the file in the EXE file in the same directory, even if you add this file, the program can run. If you set the Generate Operation to Embedded Resources, you don't need to put the files in the same directory, but you must have the file in the project. Prelimated, I feel that NHibernate is a nice frame, but it is really necessary to do a lot of work in project development.