I have a model and I am having trouble managing the relationships using entity framework 4.1 Here the model (simplified):
If I have a parent table and a child table, is it possible to multi-delete the rows in them without having a \"ON DELETE CASCADE\" constraint?
I\'m currently working on a small PoC project and decided to take NHibernate for a spin for the persistence part.
I\'m creating a custom commenting system which can attache comments to any model using the contenttypes GenericForeignKey.
The parent table is: CREATE TABLE BHEAD ( ID INTEGER primary key asc, DESCR TEXT, LINECTR INT, UNITCTR INT)
I have a table of images, and those images will have various descendants such as thumbnails, different sized versions, and crops (and 开发者_高级运维thumbs of those crops), etc.
I\'m trying to make a simple example in order to learn how to delete a row from a parent table and automatically delete the matching rows in the child table using Doctrine2.
I ve got a database model开发者_如何学Goize like this, One mother table let\'s call it table_mother, and severals child tables.
I have table \"A\" in MySQL. It has some references with cascade deleting to some other tables (\"B\", \"C\", \"D\" ...). I need to use a trigger when something deletes from \"A\". This trigger works
I\'m relatively new to configuring NHibernate and have run in to a problem. I have the following entities :