I ran some DDL script to setup a complete country table in my database. The country table\'s primary key column contains the corresponding ISO code for every country.
I have a following mapping: <set name=\"People\" lazy=\"true\" table=\"ProjectPeople\"> <key column=\"ProjectId\" />
Is there an easy way to make NH INSERT or UPDATE an entity depending on whether there is already an enti开发者_StackOverflow中文版ty with same <natural-id />?
I have a Parent/Child object/mapping as follows: class Parent { int Id; string name; List<Child> children;