When developing your own program like duwamish, you may encounter some problems:
1. Only the table structure is displayed, and data in the table cannot be displayed.
Generally, there is a problem with the corresponding class in the DataAccess layer. For example, the dsCommand is not correctly assigned a value, so daCommand. Fill (data) is not filled with data. I still have a question, in any class in the DataAccess layer, in dsCommand. tableMappings. add ("Table", BookData .........
The reason for this is that the function of several classes (such as book and customer) is copied to the east and the result is incorrect.
2. A connection failure is not defined.
I carefully checked the sqldatabase connection characters, which is completely normal. Later I found out that it was a problem with the global. asax file in the web project. Delete global. asax. cs, modify the global. asax file, and uninherit from global. Everything is normal.
I re-created a web project, and global. asax is generated by default, but duwamish modified the file. I have discovered this problem for a long time.
There are also some faults, such as the failure to re-compile each project, which leads to the "no reference" error of other referenced projects and the database connection failure, which leads to "the project is not configured as the debugging mode, the web server cannot be started as debugging. "Sorry, it is too wrong.