Playing with NHibernate - Inverse and Cascade mapping attributes

added by Mariano Vazquez
7/5/2013 2:21:53 PM

0 Kicks, 49 Views

NHibernate provides a really flexible way of handling class inheritance and parent-child relationship. That said, I've noticed that these two important concepts are not very well explained in the documentation, which leads to a several discussions and debates in the community about the proper way of mapping your tables (and sometimes to explanations that state the opposite). Navigating throught the docs you'll find more examples of the concept, but I couldn't find one that fully explains what this concept means and how you can use it together with the cascade (another mapping attribute). In the next few lines, I'm going to (try to) do this.