SlideShare ist ein Scribd-Unternehmen logo
1 von 17
Domain Driven Design With Entity Framework 4.0 Presented By: Muhammad Moussa Mohamed R. Samy 1
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 2
What is Domain Driven Design? 3
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 4
Layered architecture in Domain-Driven Design 5
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 6
Developer & Domain Expert Show 7
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 8
Domain Driven Design building blocks at glance 9
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 10
Building Domain Model with EF 4.0 Model First 11
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 12
Building Domain Repositories with EF 4.0 13
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 14
Building Domain Services 15
Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 16
Verify domain model with unit tests 17

Weitere Àhnliche Inhalte

Ähnlich wie Domain Driven Design

Lap Around Entity Framework
Lap Around Entity FrameworkLap Around Entity Framework
Lap Around Entity Framework
Jaliya Udagedara
 
Lap Around Entity Framework
Lap Around Entity FrameworkLap Around Entity Framework
Lap Around Entity Framework
Jaliya Udagedara
 
SharePoint 2013 Design manager – from HTML to SharePoint
SharePoint 2013 Design manager – from HTML to SharePointSharePoint 2013 Design manager – from HTML to SharePoint
SharePoint 2013 Design manager – from HTML to SharePoint
Eric Overfield
 
Enhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web DesignEnhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web Design
Eric Overfield
 

Ähnlich wie Domain Driven Design (20)

Lap Around Entity Framework
Lap Around Entity FrameworkLap Around Entity Framework
Lap Around Entity Framework
 
Lap Around Entity Framework
Lap Around Entity FrameworkLap Around Entity Framework
Lap Around Entity Framework
 
My Set Focus .Net Portfolio
My Set Focus .Net PortfolioMy Set Focus .Net Portfolio
My Set Focus .Net Portfolio
 
Intro to Branding SharePoint 2013
Intro to Branding SharePoint 2013Intro to Branding SharePoint 2013
Intro to Branding SharePoint 2013
 
OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17OracleDeveloperMeetup - London 19-12-17
OracleDeveloperMeetup - London 19-12-17
 
Domain Driven Design Up And Running
Domain Driven Design Up And RunningDomain Driven Design Up And Running
Domain Driven Design Up And Running
 
BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"BlackBerry10: "Built For BlackBerry (BFB)"
BlackBerry10: "Built For BlackBerry (BFB)"
 
.NET Core: Everything You Need to Know
.NET Core: Everything You Need to Know .NET Core: Everything You Need to Know
.NET Core: Everything You Need to Know
 
Enhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web DesignEnhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web Design
 
MS windows server 2008 - Designing a windows server 2008 active directory inf...
MS windows server 2008 - Designing a windows server 2008 active directory inf...MS windows server 2008 - Designing a windows server 2008 active directory inf...
MS windows server 2008 - Designing a windows server 2008 active directory inf...
 
Getting Started with .NET
Getting Started with .NETGetting Started with .NET
Getting Started with .NET
 
EF Core 1: News features and changes
EF Core 1: News features and changesEF Core 1: News features and changes
EF Core 1: News features and changes
 
API Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie MitraAPI Workshop Amsterdam presented by API Architect Ronnie Mitra
API Workshop Amsterdam presented by API Architect Ronnie Mitra
 
Dimensional Design Inc. of Atlanta, Georgia
Dimensional Design Inc. of Atlanta, GeorgiaDimensional Design Inc. of Atlanta, Georgia
Dimensional Design Inc. of Atlanta, Georgia
 
SharePoint 2013 Design manager – from HTML to SharePoint
SharePoint 2013 Design manager – from HTML to SharePointSharePoint 2013 Design manager – from HTML to SharePoint
SharePoint 2013 Design manager – from HTML to SharePoint
 
Why Codeigniter Development Services are preferred?
Why Codeigniter Development Services are preferred?Why Codeigniter Development Services are preferred?
Why Codeigniter Development Services are preferred?
 
Armada Preso
Armada PresoArmada Preso
Armada Preso
 
Enhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web DesignEnhancing SharePoint with Responsive Web Design
Enhancing SharePoint with Responsive Web Design
 
StackEngine Problem Space Demo
StackEngine Problem Space DemoStackEngine Problem Space Demo
StackEngine Problem Space Demo
 
sql1
sql1sql1
sql1
 

Mehr von Mohamed Samy (7)

Continuous Integration using TFS
Continuous Integration using TFSContinuous Integration using TFS
Continuous Integration using TFS
 
Making a Career in I.T. my 2 cents :)
Making a Career in I.T. my 2 cents :)Making a Career in I.T. my 2 cents :)
Making a Career in I.T. my 2 cents :)
 
Introducing Windows Azure
Introducing Windows Azure Introducing Windows Azure
Introducing Windows Azure
 
Patterns&Antipatternsof SOA
Patterns&Antipatternsof SOAPatterns&Antipatternsof SOA
Patterns&Antipatternsof SOA
 
Introducing Continuous Integration Using Vsts
Introducing Continuous Integration Using VstsIntroducing Continuous Integration Using Vsts
Introducing Continuous Integration Using Vsts
 
Whitepaper On Agile Implementation Outline
Whitepaper On Agile Implementation OutlineWhitepaper On Agile Implementation Outline
Whitepaper On Agile Implementation Outline
 
Microsft Dynamics AX Introduction
Microsft Dynamics AX IntroductionMicrosft Dynamics AX Introduction
Microsft Dynamics AX Introduction
 

KĂŒrzlich hochgeladen

+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
Christopher Logan Kennedy
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

KĂŒrzlich hochgeladen (20)

"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 

Domain Driven Design

  • 1. Domain Driven Design With Entity Framework 4.0 Presented By: Muhammad Moussa Mohamed R. Samy 1
  • 2. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 2
  • 3. What is Domain Driven Design? 3
  • 4. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 4
  • 5. Layered architecture in Domain-Driven Design 5
  • 6. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 6
  • 7. Developer & Domain Expert Show 7
  • 8. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 8
  • 9. Domain Driven Design building blocks at glance 9
  • 10. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 10
  • 11. Building Domain Model with EF 4.0 Model First 11
  • 12. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 12
  • 14. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 14
  • 16. Agenda What is Domain Driven Design? Layered architecture in Domain-Driven Design Developer & Domain Expert Show Domain Driven Design building blocks at glance Building Domain Model with EF 4.0 Model First Building Domain Repositories with EF 4.0 Building Domain Services Verifying domain with Unit Tests 16
  • 17. Verify domain model with unit tests 17

Hinweis der Redaktion

  1. Reference:http://ajlopez.wordpress.com/2008/09/12/layered-architecture-in-domain-driven-design/Evans writes:For a shipping application to support the simple user act of selecting a cargo’s destination from a list of cities, there must be program code that (1) draws a widget on the screen, (2) queries the database for all the possible cities, (3) interprets the user’s input and validates it, (4) associates the selected city with the cargo, and (5) commits the change to the database. All of this code is part of the same program, but only a little of it is related to the business of shipping.He proposes that the domain model resides in a layer, the Domain Layer. In this way, the domain model is protected from technicalities as concrete persistence implementation, and presentation duties. I like to say that the domain is as an organism, that receives stimula, actions from the outside, and reacts to such commands. The domain should run without detailed knowledge of the rest of the application. Serialization between physical tiers, presentation details and database access, should be clearly separated from the domain implementation.The layers could be described as:UI (User Interface): the easiest to understand, this layer is the responsible of displaying information to the user, and accept new data. It could be implemented for web, desktop, or any presentation technology, present or future. For example, it could be a voice application, that interacts with the user via a phone. The acid test for our design is that a radical change in user interface should have minimal (or controled, at least) impact in the rest of the system.Application Layer: it’s in charge of coordinating the actions to be performed on the domain. There are no business rules or domain knowledge here. No business state resides in this layer. It delegates all domain actions to the domain. It could coordinate many actions (possibly in many domains). It could prepare the infrastructure to be ready to work with the domain for an specific action (for example, preparing transaction scopes).Domain Layer: In this layer resides the heart of software, according to Evans. Business rules and logic lives inside this layer. Business entity state and behavior is defined and used here. Communication with other systems, persistence details, are forwarded to the infrastructure layer. Evans discuss the patterns he uses in this layer, as Entities, Value Objects, Services, Repositories and Factories. We would explore the patterns and implementations in future posts.Infrastructure Layer: God and devil are in the details, and in the infrastructure layer. Its main responsibility is the persistence of the business state, most frequently, using a relational database.