Updating book collection
For those who may not be familiar with Copyright law, we are unable to make works available that are not in the public domain.
This mean, basically, nothing where the author has not been dead for at least 75 to 90 years.
There's still will be the 2 queries for updating (get original update it), but I wouldn't call this a "Con".And more secure (no need to fear about malicious "hidden fields" or things like that)I think you are right, my bad for trying to overlook View Models. I usually go one step further as per Dino Esposito's blog and create Input Models too, a tad belt and braces but it works quite well.Just means 2 extra models per models - doh ;-)One of the problems with this approach is that you can't mock db. EF has a reasonably good mocking story elsewhere - it's pretty annoying that (so far as I can tell) they don't have one here. I believe there is yet another way to approach this as well.One way to do this, perhaps the most typical way, is through parsers that conform to the Simple API for XML (SAX) or the Document Object Model (DOM).Both of these parsers are provided by Java API for XML Processing (JAXP).