Duwamish as an example of VS.NET, must represent the ideology and development techniques that MS want to transfer to developers, remember to see the example programs for PB when they learn PB, and wait for a lot of detours and then see PB routines. Discover that the original good way to think about the way, skill, lying quietly on the machine! I have always thought about studying Duwamish, but there is always no chance. Now the system is online, it is easy to come to a close contact with her :) Duwamish solution has a total of 6 projects, the structure is divided into structure 5 floors: Business Facade, Business Rules, Business Regulations, Data Access Layer (Data Access), Business Display Layer (Web). It is SYSTEMFRAMEWORK, and it is mainly used. To conduct some configuration, tracking, logs, etc. of the entire system architecture. Common project 1. Let's take a look at Duwamish7 data structure, Figure 1
2. For the four most important objects in the database, the four most important objects in the database are inherited, and the four classes are inherited from DataSet, but the classes join two properties: [System.comPonentModel.Designercategory ("code") ], [SERIALIZABLEATTRIBUTE], the previous attribute means that the current class designer belongs to a certain category. The latter attribute tag is currently a serialized class that can be called remotely. The class is mapped in the database in the database in the table and the field in the table. The relevant error information is also defined in the part class, such as public const string email_field_not_unique = "email not unique"; 3. Call the buildDataTables () method in the default constructor Create a table structure and add it to the DataSet. BookData, CategoryData, only one table is saved in the CustomerData class, and 6 table information related to the order is saved in the OrderData class. The table in the DataSet is one-to-one. Some is a physical table corresponding to multiple tables in the DataSet, and some physical tables correspond to a table in Dataset. 4.Common project also has a DuwamishConfiguration class, Used to get the Duwamish configuration item in the web.config file, inherit from the IconfigurationSecionrandler interface. This interface defines the following Agreement: All configuration sections must be paid to the configuration settings after implementation. This interface only has a create () method, the DuwamishConfiguration class implements the CREATE () method, populates NameValueCollection Setting by the NameValueSessionHander Instance BaseHandler.Create () method, and then call the ApplicationConfiguration.ReadSetting () method to return to the specified configuration information.