![](https://csdnimg.cn/release/download_crawler_static/1738522/bg7.jpg)
VI
8.3.4 Pattern: Object Self-Association........................................................................... 21
8.3.5 Pattern: Object Inheritance .................................................................................. 22
8.3.6 Pattern: Domain Object........................................................................................ 22
8.3.7 Pattern: Advanced Mapper................................................................................... 22
8.3.8 Mapping pattern example ..................................................................................... 23
9. DISCUSSION ...................................................................................................................... 23
9.1 Why patterns? ............................................................................................................... 23
9.2 Initial evaluation ........................................................................................................... 23
10. CONCLUSION ................................................................................................................... 24
10.1 Key findings.................................................................................................................. 24
10.2 Future research.............................................................................................................. 24
11. ACKNOWLEDGMENTS .................................................................................................. 25
12. REFERENCES.................................................................................................................... 25
LIST OF FIGURES
Figure 1: Part of a banking application built in a procedural style………………………………...6
Figure 2: Transitioning from procedural database-driven
design to domain-driven design……………………………………………………………………7
Figure 3: A navigation map of the language of domain-driven design.............................................8
Figure 4: Layered architecture according to DDD…………………………………………………8
Figure 5: Aggregate…………………………………………...........................................................9
Figure 6: Entity Framework architecture………………………………………………………….10
Figure 7: Order application relational schema…………………………………………………….11
Figure 8: Data access with the SQL Client..………………………………………………………11
Figure 9: Conceptual Entity Data Model built
on top of the relational database schema in the order application..……………………………….12
Figure 10: Data access with LINQ in the Entity Framework...……………………………………12
Figure 11: Domain aggregate retrieved from the relational database……………………………..16
Figure 12: Relational model underlying the Blog Aggregate……………………………………..16
Figure 13: SQL query to retrieve the Blog aggregate………… …………………… …………..16
Figure 14: SQL Client............................................................... .....................................................17
Figure 15: hSQL in NHibernate……………………………… …………………………… …..17
Figure 16: The Entity Data Model generated from the Blog relational model……………………18
Figure 17: Compiled LINQ to Entities query…………………………………………………......18