Linq to sql Delete

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news.microsoft.com

    #1

    Linq to sql Delete

    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


  • Cor Ligthert[MVP]

    #2
    Re: Linq to sql Delete

    Hi,

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

    Cor

    Comment

    • news.microsoft.com

      #3
      Re: Linq to sql Delete

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

      "Cor Ligthert[MVP]" <notmyfirstname @planet.nlescri bió en el mensaje
      news:5DBC1A87-42E7-4070-B829-44A9CF52F3F6@mi crosoft.com...
      Hi,
      >
      I saw this 100% exact question in the C# newsgroup. Is this a kind of fun?
      >
      Cor

      Comment

      Working...