473,516 Members | 3,465 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

general architect question

In the database design I'm using a soft delete (a column flaged as IsDeleted)
instead of a hard delete, what should you do if the item is deleted in one
table yet you go a create a dropdownlist with a list of items and record you
bring up has that soft deleted item so you try to "set" the selected vaue to
it and it no longer is in the list since your sql statement looks for
IsDeleted = 0? You'll get an error not in the list anymore (not an item in
the list). You could Try/ Catch it. But is there a more common way to
prevent/avoid this?

Thanx.
Nov 19 '05 #1
2 967
Chris,

That's more of a User Interface issue. What do you want the user to see when
they open a detail field, but the selected item has been "soft deleted"?
What is the user expecting to see? It may lead you down the path of other
issues to.

Say for example, the database is a list of songs, and each song has a
category, say Rock, Easy, Classical, etc. But then you soft deleted Rock, so
that you could expand it to Hard Rock and Modern Rock. When a user looks at
the song with the old Rock category, what do you expect them to see? You
have the option of doing soft-cateogization as well - not using foreign
keys.
Just store the categorization value (string) into the field. But this leads
to data-integrity issues.

HTH

Steve

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
In the database design I'm using a soft delete (a column flaged as IsDeleted) instead of a hard delete, what should you do if the item is deleted in one
table yet you go a create a dropdownlist with a list of items and record you bring up has that soft deleted item so you try to "set" the selected vaue to it and it no longer is in the list since your sql statement looks for
IsDeleted = 0? You'll get an error not in the list anymore (not an item in
the list). You could Try/ Catch it. But is there a more common way to
prevent/avoid this?

Thanx.

Nov 19 '05 #2
exactly, the problem. I could adjust the presentation to detect that the item
is no longer available, not adding or selecting it, or add the item back to
the list. If I don't make it available then if the user saves the record it
will change the value for that field. Now it could be a good thing, but also
bad for history (reporting).

I might just add it to the list again, making it selected for modifing that
particulaer form data. Thought I'd ask if there was other approaches, thanx.

"Steve Lutz" wrote:
Chris,

That's more of a User Interface issue. What do you want the user to see when
they open a detail field, but the selected item has been "soft deleted"?
What is the user expecting to see? It may lead you down the path of other
issues to.

Say for example, the database is a list of songs, and each song has a
category, say Rock, Easy, Classical, etc. But then you soft deleted Rock, so
that you could expand it to Hard Rock and Modern Rock. When a user looks at
the song with the old Rock category, what do you expect them to see? You
have the option of doing soft-cateogization as well - not using foreign
keys.
Just store the categorization value (string) into the field. But this leads
to data-integrity issues.

HTH

Steve

"Chris" <Ch***@discussions.microsoft.com> wrote in message
news:E0**********************************@microsof t.com...
In the database design I'm using a soft delete (a column flaged as

IsDeleted)
instead of a hard delete, what should you do if the item is deleted in one
table yet you go a create a dropdownlist with a list of items and record

you
bring up has that soft deleted item so you try to "set" the selected vaue

to
it and it no longer is in the list since your sql statement looks for
IsDeleted = 0? You'll get an error not in the list anymore (not an item in
the list). You could Try/ Catch it. But is there a more common way to
prevent/avoid this?

Thanx.


Nov 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2469
by: Stefan Svensson | last post by:
I posted this request for help in Visio, troubleshooting newsgroup and Installation newsgroup, about 1,5 months ago but without result. "I recently installed Visio .NET Enterprise Architect 2003 along with .NET Enterprise Architect 2003. This seems to have been a mistake as I can no longer open Visio. When I try to open Visio I get a...
2
11109
by: Vick | last post by:
Hi Folks, I'm not too sure if this is the appropriate place to ask this question, but I'm trying to figure out what some of the main differences between the following Job roles are on an IT Project: * - System Architect * - Solution Architect * - Application Architect - Is this the same as a Solution Architect? * - Technical Architect
1
1139
by: Boost King | last post by:
Hi all, What is the difference between: 1) Visual Studio.NET Enterprise Architect Edition and 2) Visual Studio.NET Professional Edition Thanks! (to reply delete REMOVE and THIS)
5
1577
by: | last post by:
Hello, I bought Visual Studio 6.0 Professional several years ago as a college student with the academic price/license. Microsoft's Upgrade Eligability page (http://tinyurl.com/3mtga) does list VS 6.0 Professional as an upgrade, but it mentions nothing about the academic license. Does anyone know of a Microsoft page that states whether...
1
2505
by: xman | last post by:
very hard is fix exactly group for this question.. but I am sure that some of people here have some experience with these compilers: Visual Studio NET Enterprise Architect 2002 and Visual Studio NET 2003 1. What is difference between Visual Studio NET Enterprise Architect 2002 and Visual Studio NET 2003 2. If I try user Visual Studio NET...
3
1677
by: george r smith | last post by:
What are the main advantages to a developer in purchasing Visual Studio .NET Enterprise Architect over Visual Studio .NET Developer. I know of the web sites - just would like some developer opinions. thanks. grs
2
1498
by: Doug | last post by:
Hi, I wanted to start a general discussion more for getting some thoughts on what other people think/practice out there just to see how far (if at all) I'm off base on my own thoughts. My primary experience is developing applications using VB or DotNet. I have some sql skills but they are limited. In a previous company our concept on...
17
3316
by: Big Charles | last post by:
Hello, Recently, a friend of mine has told me that he is a .NET System Architect. What is a .NET System Architect? What are their functions? What is the difference between an Architect and a programmer and a System Analyst? Thanks for your help !
4
3499
by: Arlene Reid | last post by:
Hi all I need to use enterprise architect to create class diagrams with all their various atrributes and relationship. I then need to generate xml from this class diagram. Has anyone tried doing this? Please let me know ASAP Thanks
0
7273
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7405
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7574
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7547
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
5712
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4769
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3265
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
1620
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
487
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.