Linq to sql Delete

N

news.microsoft.com

Hello people:

First of all forgiveness for my English.
I am working with Linq to SQL, Visual Studio 2008 and SQL Server 2000.
When you delete a record and then go back to Insert (ie, insert a record
with the same primary key)
and I run SubmitChange it generates an key duplicate exception.
I am reviewing the SQL commands generated by linq, and I see that attempts
to run
first insert command, and then delete command.
I imagine that this is the problem because I expected the first run delete
and then Insert.
Any thoughts on this?
Thanks
 
C

Cor Ligthert[MVP]

Hi,

I saw this 100% exact question in the C# newsgroup. Is this a kind of fun?

Cor
 
N

news.microsoft.com

Not. Forgiveness.
I am really worried, not in a clean way to solve it.
Greetings
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top