Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Review: Microsoft N Layer App Sample, part VIII–CRUD is so 90s

DZone's Guide to

Review: Microsoft N Layer App Sample, part VIII–CRUD is so 90s

·
Free Resource

Continuing my review of http://microsoftnlayerapp.codeplex.com/, an Official Guidance (shows up at: http://msdn.microsoft.com/es-es/architecture/en) which people are expected to read and follow.

Take a look at the following:

image

I was curious about that, I didn’t really understand what is going on here, so I tracked it down a bit…

image

Skipping over the part where there is a cast of null, this seems to indicate that this is a call to modify the entity to simulate concurrency, digging deeper:

image

Seems like I was right, it is intended to force the save of this item to the database. That seemed very strange, so I checked upward, where this is used, and I found:

image

So, ChangeBankAccount is just another way of saying Save(), it seems, in a very round about way.

Topics:

Published at DZone with permission of Oren Eini, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}