Click here to Skip to main content
15,439,244 members
Home / Discussions / C#
   

C#

 
QuestionC# how to compare the old product(serialized) to new product,If same product means add the quantity only not repeated that product in output for below program Pin
Member 1097120125-Jul-14 3:22
MemberMember 1097120125-Jul-14 3:22 
AnswerRe: C# how to compare the old product... Pin
OriginalGriff25-Jul-14 4:35
mveOriginalGriff25-Jul-14 4:35 
QuestionEntity Framework Pin
Steve Foutty25-Jul-14 3:14
MemberSteve Foutty25-Jul-14 3:14 
AnswerRe: Entity Framework Pin
Gerry Schmitz25-Jul-14 11:30
mveGerry Schmitz25-Jul-14 11:30 
GeneralRe: Entity Framework Pin
Steve Foutty25-Jul-14 13:46
MemberSteve Foutty25-Jul-14 13:46 
GeneralRe: Entity Framework Pin
Gerry Schmitz25-Jul-14 14:03
mveGerry Schmitz25-Jul-14 14:03 
QuestionList Pin
Steve Foutty24-Jul-14 15:45
MemberSteve Foutty24-Jul-14 15:45 
AnswerRe: List Pin
Rob Philpott24-Jul-14 20:13
MemberRob Philpott24-Jul-14 20:13 
Sounds like the tables might be holding enumeration types values. If so, they're probably anchored by foreign keys on other tables. Do they have just two columns, a key and a value?

It's a common problem, because in code you might use an enum to represent these values and you end up in the situation of how to keep the database and code in sync.

You could remove the tables, but that might render the database a bit meaningless without the application tier in place, limiting what could be achieved via a stored proc for instance. You can't really create enum types at runtime, although you could create the same effect using static members on a class.

Probably the best way would be to have them as a collection of key/value pairs.

I can't really offer a definitive answer I'm afraid, but for completeness it might be advisable to keep them.
Regards,
Rob Philpott.

AnswerRe: List Pin
Mycroft Holmes24-Jul-14 22:26
professionalMycroft Holmes24-Jul-14 22:26 
GeneralRe: List Pin
Rob Philpott24-Jul-14 23:00
MemberRob Philpott24-Jul-14 23:00 
GeneralRe: List Pin
PIEBALDconsult25-Jul-14 20:24
professionalPIEBALDconsult25-Jul-14 20:24 
AnswerRe: List Pin
Dave Kreskowiak25-Jul-14 2:24
mveDave Kreskowiak25-Jul-14 2:24 
GeneralRe: List Pin
Mycroft Holmes25-Jul-14 14:20
professionalMycroft Holmes25-Jul-14 14:20 
GeneralRe: List Pin
Dave Kreskowiak26-Jul-14 3:53
mveDave Kreskowiak26-Jul-14 3:53 
AnswerRe: List Pin
GuyThiebaut25-Jul-14 3:06
professionalGuyThiebaut25-Jul-14 3:06 
GeneralRe: List Pin
Mycroft Holmes25-Jul-14 14:25
professionalMycroft Holmes25-Jul-14 14:25 
GeneralRe: List Pin
GuyThiebaut25-Jul-14 19:18
professionalGuyThiebaut25-Jul-14 19:18 
AnswerRe: List Pin
Steve Foutty25-Jul-14 3:12
MemberSteve Foutty25-Jul-14 3:12 
GeneralRe: List Pin
PIEBALDconsult25-Jul-14 20:27
professionalPIEBALDconsult25-Jul-14 20:27 
QuestionAsp.net rdcl Report Pin
Zeyad Jalil23-Jul-14 23:00
professionalZeyad Jalil23-Jul-14 23:00 
AnswerRe: Asp.net rdcl Report Pin
thatraja24-Jul-14 2:17
professionalthatraja24-Jul-14 2:17 
QuestionCrystal Report Sort by Date Formula Pin
Amr Muhammed23-Jul-14 13:28
MemberAmr Muhammed23-Jul-14 13:28 
AnswerRe: Crystal Report Sort by Date Formula Pin
thatraja24-Jul-14 2:30
professionalthatraja24-Jul-14 2:30 
AnswerRe: Crystal Report Sort by Date Formula Pin
jschell24-Jul-14 11:39
Memberjschell24-Jul-14 11:39 
QuestionUsing a proxy server in c# Pin
Member 1052179323-Jul-14 13:03
MemberMember 1052179323-Jul-14 13:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.