Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3
This is the forum to discuss the Wrox book Beginning ASP.NET 3.5: In C# and VB by Imar Spaanjaars; ISBN: 9780470187593
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 13th, 2009, 10:14 AM
bpl bpl is offline
Authorized User
Points: 86, Level: 1
Points: 86, Level: 1 Points: 86, Level: 1 Points: 86, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default Ch 11 Creating relationships between tables

In previous versions ASP.NET relationship dialog box had option: "Cascade Delete Related Records"; it was radical solution for keeping data integrity. If this option selected and you delete a department from the database, all its related categories would be automatically deleted by SQL Server. I used this option in my previous projects to let users delete ( after confirmation) record from parent table with all corresponding records in related tables. I don't see this option in ASP.NET 3.5.
 
Old November 13th, 2009, 11:37 AM
Imar's Avatar
Wrox Author
Points: 70,322, Level: 100
Points: 70,322, Level: 100 Points: 70,322, Level: 100 Points: 70,322, Level: 100
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Utrecht, Netherlands.
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi there,

You click the relation in the diagram and then open its Properties Grid. Then expand INSERT and UPDATE Specification and choose Cascade in the Delete drop-down.

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
 
Old November 13th, 2009, 11:59 AM
bpl bpl is offline
Authorized User
Points: 86, Level: 1
Points: 86, Level: 1 Points: 86, Level: 1 Points: 86, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2009
Posts: 21
Thanks: 0
Thanked 1 Time in 1 Post
Default

I did not notice this option. It exists in SQL Server 2005 Relationship dialog box too. Now I see, that I can migrate my old projects without problem.

Thank you very much.




Similar Threads
Thread Thread Starter Forum Replies Last Post
Relationships between the Tables - Delete rule yevi BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 3 May 1st, 2009 09:44 AM
Ch 11 creating a user reg script ed123 BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 0 September 28th, 2007 11:36 AM
Polls tables relationships nabeelalkaff BOOK: ASP.NET Website Programming Problem-Design-Solution 2 August 10th, 2006 12:18 AM
Multiple tables with relationships Please Help Lesviper Access VBA 6 February 3rd, 2005 08:20 PM
Creating relationships in code eresina Pro VB Databases 1 June 23rd, 2003 06:44 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.