Directly with a download resource to change, do not build from scratch; see relevant information on the web; 1 after the project is decompressed and the referenced DLL
2 Structure of the project
3 run a bit
The following figure error occurred;
Look at the details of the error again;
SQL Server is not started because SQL Server is 4 started
The express version of this machine; its connection string is hc093\sqlexpress,hc093 is a computer name; it differs from a non-express version;
Create a new table, and insert data;
CREATE TABLE UserInfo
(
Id int PRIMARY key NOT NULL identity (1,1),
UserName nvarchar (50),
Age int,
Address nvarchar (50)
)
5 Modifying the configuration file
The above is the modified configuration file;
Server to be changed to native;
NHibernate.Dialect.MsSql2008Dialect, formerly Mssql2005dialect, was changed to 2008;
Take a look at the instructions in the NHibernate Chinese manual on dialect;
6 Results
Resource Downloads
Http://pan.baidu.com/s/1o7OEMc6
Filename
Nh.rar