I had a pretty common problem with regards to inserting into database tables. As you probably know, depending on your data and foreign keys, you need to insert data in a specific order, for instance, you first need to insert invoice record, and only after that you can insert invoice items. This problem has been already solves so many times, and in different ways (some ORMs inspect your tables and determine dependencies and what goes first, others rely on you to define the order by defining dependencies, and some of them just leave it to you to do the updates...
Read More
Recent Comments