Slide

History
Arch.
UI
Design
Domain
Model
317
$37.87
Sep 1 2010
Yes
A17T5
318
$99.99
July 3 2010
Yes
A17T5
319
$100.11
Aug 4 2010
Yes
P313Z
320
$69.47
Sep 9 2010
No
P599Z
Save
Cancel
Source of truth
UI
Services
BL
DAL
DB
Get data
User is looking at
stale data
Get data
Change data
UI
Services
BL
DAL
DB
Cache
Cache
UI
Map from DTOs & WS to
view model
WS
Map from DTOs and
WS to domain object
DB
Use EF to map from
tables to domain
objects
List of customers
Data correct as of
10 minutes ago
2 Layers == 2 Tiers
UI
Query only
Persistent View Model
For each view in the UI,
have a view/table in the DB
SELECT * FROM MyTable (WHERE ID = @ID)
Customer Service Rep view
Supervisor view
List of customers
List of customers
ID
Name
Phone
ID
Name
Phone Lifetime value
Input from User
Validation
Rules
Persistence
DB
Transaction
Get
current
state
Command
Input
Validation
WS
Persist
Validation
Rules
DB
317
$37.87
1/9/09
Yes
A17T5
318
$99.99
3/7/09
Yes
A17T5
319
$100.11
4/8/09
Yes
P313Z
320
$69.47
9/9/09
No
P599Z
Save
Cancel
Thousands of seats, hundreds of thousands of requests
No need to show actual status
Server
MSMQ
Outgoing
Incoming
MSMQ
Outgoing
Incoming
Client
Data from input immediately overlaid on queries
Queries
View Model
Queries
View Model
Updater
Publish
Input
WS
Client
Validation
Commands
Validation
Rules
DB
www.NServiceBus.com
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
Sign up for Tech·Ed 2011 and save $500
starting June 8 – June 31st
http://northamerica.msteched.com/registration
You can also register at the
North America 2011 kiosk located at registration
Join us in Atlanta next year