Professional Documents
Culture Documents
Module02
• Logical Modeling
• Physical Database Structure
• Working with DBAs
• Database Design in Agile and Extreme
Programming
Planning for Distributed Applications
• Layers
Browser
• Presentation
• Business Logic
HTTP
• Data Access
Web
• Database Server Presentation
• Communication
HTTP (Web Services)
• Security TCP, MSMQ (WCF Services)
Middle Business Logic
Tier Data Access
Server
Database
Server
Planning State Management
Designing Models
Designing Controllers
• Designing Views
Designing Models
• Model Classes and Properties
• Domain Model and Logical Data Model Diagrams
• Relationships and Aggregates (Deleting a photo would delete all
the comments but not the user)
• Entity Framework
• Object Relational Mapping (ORM) framework
• It links tables and views to the model classes that you have planned.
You do not need to write SQL code to query or update database tables
because Entity Framework does this for you.
• Database-First, Model-First (Entity Designer tool) or Code-First
• Design in Agile and Extreme Programming
• In an MVC project, this means that you identity the model names and
relationships during the design phase, record these on a Domain Model
UML diagram. And leave details such as property names and data types
to be finalized in the development phase, along with the complete LDM
diagrams.
Designing Controllers
Controller Action
AddPhoto (GET)
Photo AddPhoto (POST)
DisplayGallery (GET)
Logon (GET)
User
Logon (POST)
• Views, Templates,
and Partial Views Adventure Works Photo Sharing Log On
Add Comment
Lab: Designing ASP.NET MVC 4 Web
Applications
Review Question(s)
Real-world Issues and Scenarios
Tools
• Best Practice
• Common Issues and Troubleshooting Tips