Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying ASP.NET 3.5 Social Networking
  • Table Of Contents Toc
  • Feedback & Rating feedback
ASP.NET 3.5 Social Networking

ASP.NET 3.5 Social Networking

By : Andrew Siemer
4.1 (10)
close
close
ASP.NET 3.5 Social Networking

ASP.NET 3.5 Social Networking

4.1 (10)
By: Andrew Siemer

Overview of this book

Table of Contents (19 chapters)
close
close

Solution


Let's take a look at our solution.

Database optimization

The FlaggedForDelete concept is not one I am going to spend too much time on. You simply need to add FlaggedForDelete columns to each of your tables with false as the default value. As we are using LINQ to SQL, you would then need to update all the tables in your LINQ to SQL design surface. Then specify the default value of the FlaggedForDelete field as false in all your INSERT statements (you will need to set this value as objects come in to be inserted). With this in place, you would next need to update all your SELECT statements to check against the FlaggedForDelete field excluding items that are marked true. Don't forget that when you are running joined queries to check the FlaggedForDelete field on the linked tables as well. Last, you need to have a scheduled process that grabs all the rows that are flagged for deletion and removes them.

The process for removing rows that are flagged for delete is this:

  • From table A, select...

Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
ASP.NET 3.5 Social Networking
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon