NHibernate Research (1)

xiaoxiao2021-03-06  43

Download the latest version 0.6.0.0 version from NHibernate.SourceForge.net, then open with vs.net, first open NHibernate.sln, build, then open NHibernate.examples-1.1.sln, build

In order to quickly view the NHibernate effect in the Debug state, do the following adjustments: 1. Project-> NHibernate.examples-> userfixture.cs is changed to public static void main () 2. Project-> nhibernate.examples nature change Windows Console Application3. Based on user.hbm.xml, establish a database NHibernate, establish a table users4. Project-> NHibernate App.Config file in the MSSQLServer2000 DiaLect configuration in which connection_string is the same as the configuration in general web.config.

Preliminary debugging results: Debug Single step running, no problem, you can see that there is a lot of log information in log.txt in the debug directory in the UserS table. It seems that log information is also useful.

转载请注明原文地址:https://www.9cbs.com/read-59824.html

New Post(0)