Duwamish7 study notes 1

xiaoxiao2021-03-06  20

-------------------------------- --- --------------------------------

Duwamish7 study notes (-)

DUWAMISH solutions have a total of 6 projects, which are divided into 5 floors: Business Facade, Business Rules, Business Communication, Data Access (Data Access), Business Display Layer (Web) Another item is SystemFramework, and regards some configuration, tracking, logs, etc. of the entire system architecture.

Common project

1. Let's take a look at Duwamish7's 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 database, and the relevant error information is also defined in the part class.

Public const string email_field_not_unique = "email not unique";

3. Call the buildDataTables () method in the default constructor to 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.

The 4.comMon project is also a DuwamishConfiguration class to get the Web.config file to the Duwamish configuration item, inherit from the IconfigurationSectionHandler 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 Create () method in the DuwamishConfiguration class, populates NameValueCollection setting, recall by NameValueSessionHander instance basehandler.create () method

ApplicationConfiguration.ReadSetting () method Returns a specified configuration information.

doubt:

1.4 business entities have a support for serialized constructor such as BookData class

Private BookData (SerializationInfo Info, StreamingContext Context): Base (Info, Context) {}

It is not very clear that there is no special reference object that is sequenced in this 4 kinds of serialization, and it should only be tagged by "basic serialization", which is simple to mark it. Constructor? Is it because of the reasons for inheriting a DataSet? ?

2. When is the system call the Create () method of the DuwamishConfiguration class to get relevant configuration information in the web.config file?

MSDN Help:

1.system.configuration namespace

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

New Post(0)