This project is read-only.


Aug 10, 2013 at 12:47 PM
Edited Aug 11, 2013 at 11:04 AM

The following example generates an insert statement for the Person object :
public void AddPerson(Person person)
                using (var db = CreateDB())
If i have a Person with 4 Pets, in this case, Does the above example inserts also the list of 4 Pets automatically in the database?

Best regards,
Aug 11, 2013 at 3:08 PM
No, there is currently no dirty checking mechanism, and no mapping when saving back to the database.
(mapping Is currently only handled from db to model).

It would be up to you to handle any inserts or updates.