LuiguiPepino wrote:
Hello.
Using the Northwind SQL Database,
I typed this code:
CategoryEntity E = new CategoryEntity ( 5 ) ;
E.Delete() ;
I want to delete the Category ID 5 and all the products linked
to it. I get an error. How can I do a cascade deletion just
from calling E.Delete() ?
Cascading deletes are not implemented in the code, you have to OR do it manually, OR set it up in the database (you can activate cascading deletes on a relation in SqlServer)