cascading-deletes
SQL Server 2008 - Multiple Cascading FK's - Do i need a trigger?
I have a 1..* relationship between User and Post. (one user has many posts) Post has a FK called \"UserId\", which maps to the \"UserId\" field on User table.[详细]
2023-02-12 21:20 分类:问答Delete object and all its child objects in Entity Framework?
开发者_Go百科I\'ve been trying to find the answer to this question here. Several people seem to ask similar things, but I don\'t get the answers. I have an EF entity with a bunch of child entities (on[详细]
2023-02-12 13:16 分类:问答Entity Framework: Set Delete Rule with CodeFirst
I am using EF4 CTP 5, CodeFirst. Please see my classes first: public class Guest { [Key] public Guid GuestID { get; set; }[详细]
2023-02-11 04:51 分类:问答Using EF4 CTP5 code first with no cascade delete
I\'m using code first and turned off the cascade delete for all foreigns keys using the following statement:[详细]
2023-02-11 02:10 分类:问答Does core data delete objects with cascading delete rules instantly or on-save?
In a Core Data model, entity A has a relation to entity B with the delete rule set to Cascade. Is object B immediately deleted when the [context deleteObject:A] is called, or does Core Data wait for t[详细]
2023-02-10 22:32 分类:问答Cascade deletes on linked table joining 2 tables that each have a cascade delete to another table. How?
Let\'s assume the following objects as tables in SQL: Companies Employees (refers to companies) Meetings (also refers to companies)[详细]
2023-02-10 05:52 分类:问答C# - Predict file system events on folder delete
This is more a question about what\'s the best practice in implementing this. I have a FileSystemWatcher which should inform me about User\'s changes on files and folders. Also subdirs are watched. I[详细]
2023-02-10 02:20 分类:问答SQL Server Foreign Key "On Delete Set Null " constraint not working
I am using sql server express 2008 with mmse. i have set up a foreign key constraint between to tables and set the on delete constraint to \"set null\".[详细]
2023-02-06 21:13 分类:问答Cascading hibernate delete when setting a collection to 'new ArrayList()'
I have an object mapped with hibernate that contains an id and a collection. At some point in time when the object contains items in it\'s collection I want to do obj.setCollection(new ArrayList()) an[详细]
2023-02-06 15:00 分类:问答NHibernate 'Where' Clause causing problems on cascading deletes
I have the following mapping file for \'Photo\' objects (edited for brevity): <hibernate-mapping ... default-access=\"property\" default-cascade=\"none\" default-lazy=\"true\">[详细]
2023-02-06 05:19 分类:问答