Microsoft. NET Pet Shop 4.0 learning Tour (III)
Project Reference 2
Continue with the previous discussion. Today we will talk about the two remaining projects: dalfactory, BLL, and four relationships.
1. Data Access factory dalfactory: The instance used to reflect the data layer interface and generate the interface ).So he referencesIdal.
2. Business logic layer [BLL]: Responsible for logical execution of business data. First, BLL calls the factory class to create an interface instance ),ThereforeBllReference dalfactory. The generated interface instance is in BLL,HenceBllIdal must be referenced. The bll layer must discard the instance of the model layer to the idal operation and return the result to the high-level (UI ),SoBllReference Model.
3. Based on the two projects and four relationships above, we can clearly see the project relationship graph below:
Conclusion: dalfactory references idal, BLL references dalfactory, BLL references idal, and BLL references model.
4. Summarize the above analysis to obtain a complete 6-layer structure:
Note! Reposted outside the blog community, which must be noted:
By Clark Chan
And Source: http://clarkchan.cnblogs.com/
Otherwise, reprint is declined!
//////////////////////////////////////// //////////////////////////////////////// //////////////////////////////////////