Not long ago, while learning castle while translating, I felt that the web model provided by Castle was good, so I opened its example to test it and downloaded the recently released library, and found that the namespace had changed, so I modified the originalProgramSo that the database can be used normally in the new database and the database connection is changed to sqlserver (Hey, it's nice to use nhib.pdf without modifying anyCodeYou only need to slightly adjust the configuration file ).
The first modification process is to find that the command space has changed, and some classes have also changed, in addition, the latest Castle compilation package I downloaded references different nvelocity versions, so it took me one morning to modify the original code. I thought it could be done quickly :), in order to let everyone see what is different from the ASPX page, here we will download the modified one. Let's learn it together:/files/linwinfan/minddump.rar