A thoughtful blog post by Frans Bouma:
After years of debating over model-first approach has made
it easy to test your application and POCOs. After I picked NHibernate 6 years
ago, I realized making the changes to the model was a breeze.
The changes are more manageable and smoothly ripple
through your classes and database tables.
However, looking back on it seems more interesting to
me.
The idea is pretty valid to me. We do not persist objects
to database, we persist their contents, which are their entity instances. On
the hand, serializing data from technology to the other usually means having
same the content. For instance, .Net objects can be easily serialized to Json.
But in this case, objects are mapped to tables and saved.
No comments:
Post a Comment