Click here to Skip to main content
15,904,339 members
Home / Discussions / C#
   

C#

 
AnswerRe: How To Parse This String Pin
Paul Conrad19-Jun-12 12:20
professionalPaul Conrad19-Jun-12 12:20 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon19-Jun-12 12:33
mvePete O'Hanlon19-Jun-12 12:33 
GeneralRe: How To Parse This String Pin
PIEBALDconsult19-Jun-12 12:48
mvePIEBALDconsult19-Jun-12 12:48 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon19-Jun-12 22:28
mvePete O'Hanlon19-Jun-12 22:28 
GeneralRe: How To Parse This String Pin
PIEBALDconsult20-Jun-12 3:32
mvePIEBALDconsult20-Jun-12 3:32 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon20-Jun-12 3:48
mvePete O'Hanlon20-Jun-12 3:48 
GeneralRe: How To Parse This String Pin
PIEBALDconsult19-Jun-12 12:36
mvePIEBALDconsult19-Jun-12 12:36 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon19-Jun-12 12:39
mvePete O'Hanlon19-Jun-12 12:39 
GeneralRe: How To Parse This String Pin
Kevin Marois19-Jun-12 12:48
professionalKevin Marois19-Jun-12 12:48 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon19-Jun-12 22:48
mvePete O'Hanlon19-Jun-12 22:48 
GeneralRe: How To Parse This String Pin
Kevin Marois20-Jun-12 5:49
professionalKevin Marois20-Jun-12 5:49 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon20-Jun-12 6:15
mvePete O'Hanlon20-Jun-12 6:15 
GeneralRe: How To Parse This String Pin
Kevin Marois20-Jun-12 6:33
professionalKevin Marois20-Jun-12 6:33 
GeneralRe: How To Parse This String Pin
Pete O'Hanlon20-Jun-12 8:07
mvePete O'Hanlon20-Jun-12 8:07 
GeneralRe: How To Parse This String Pin
PIEBALDconsult19-Jun-12 12:38
mvePIEBALDconsult19-Jun-12 12:38 
QuestionExcel Chart in C# Pin
Danzy8319-Jun-12 8:56
Danzy8319-Jun-12 8:56 
AnswerRe: Excel Chart in C# Pin
Eddy Vluggen19-Jun-12 9:00
professionalEddy Vluggen19-Jun-12 9:00 
GeneralRe: Excel Chart in C# Pin
Danzy8319-Jun-12 9:04
Danzy8319-Jun-12 9:04 
AnswerRe: Excel Chart in C# Pin
Eddy Vluggen19-Jun-12 9:19
professionalEddy Vluggen19-Jun-12 9:19 
GeneralRe: Excel Chart in C# Pin
Danzy8319-Jun-12 9:30
Danzy8319-Jun-12 9:30 
GeneralRe: Excel Chart in C# Pin
Eddy Vluggen19-Jun-12 10:00
professionalEddy Vluggen19-Jun-12 10:00 
GeneralRe: Excel Chart in C# Pin
Dave Kreskowiak19-Jun-12 11:06
mveDave Kreskowiak19-Jun-12 11:06 
AnswerRe: Excel Chart in C# Pin
Luc Pattyn19-Jun-12 11:21
sitebuilderLuc Pattyn19-Jun-12 11:21 
AnswerRe: Excel Chart in C# Pin
Cracked-Down19-Jun-12 19:53
Cracked-Down19-Jun-12 19:53 
Questionlinq for C# 2010 Pin
sc steinhayse19-Jun-12 8:12
sc steinhayse19-Jun-12 8:12 
I need to write some linq to sql statments for sql server 2008 r2 database that accomplishes the following tasks in a C# 2010 .net application:

1. I need to delete one row from a table where the record I would be deleting is the key to the table called main.

2. I also need to delete records from an associated table (called sub) that has the key to the main table as one of its columns. This table called sub has no foreign key constraints setup as a requirement to the table called main. In the table called sub there can be from 1 to 500 occurences of the reference to the table called main.

3. I am not certain how to setup these two deletes? Would this be separate linqs statements? would I need two separate DeleteOnSubmit statements? Would I wrap the two delete statements into one transaction so that if there is a problem, I can rollback the changes?

Can you tell me and/or point me to a reference on how to complete this task?

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.