views:

65

answers:

0

This question is about a specific example (in the book called Patterns Of Enterprise Application Architecture, by Martin Fowler) on page 283 - (Single Table Inheritance Example - Updating an Object)

I can see Mapper::Update() method invoking CricketerMapper::Save() method, which

  • First, invokes AbstractPlayerMapper::Save() to assign row[] with common property values.
  • Then, assigns row[] with property values specific to the Cricketer subclass

There does not seem to be a moment where the db is actually updated.

So the question is - how do values of the row[] array get into the db?

p.s - I don't really use C# - so I suspect this might be something to do with ADO.NET or something