what the ...?
-
I have this one Linq2Sql code that is updating a column value. I can see the column updated in the C# code, I can see the PK is correct, but it doesn't update in the DB. When I look at the SQL that Linq2SQL generates, the parameter for the column I'm updating is the old column value. WTF? How can the parameter value be the old value when I see in the C# code the new value??? This isn't an attempt to get help - it's just that I feel like ranting about this. It must be something I'm doing wrong, just haven't figured it out. Driving me nuts. :laugh:
Latest Article:
Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain -
I have this one Linq2Sql code that is updating a column value. I can see the column updated in the C# code, I can see the PK is correct, but it doesn't update in the DB. When I look at the SQL that Linq2SQL generates, the parameter for the column I'm updating is the old column value. WTF? How can the parameter value be the old value when I see in the C# code the new value??? This isn't an attempt to get help - it's just that I feel like ranting about this. It must be something I'm doing wrong, just haven't figured it out. Driving me nuts. :laugh:
Latest Article:
Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a DomainTry to ask about it on Stackoverflow... :-\
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
Never argue with a fool. Onlookers may not be able to tell the difference.
Mark Twain -
Try to ask about it on Stackoverflow... :-\
Anything that is unrelated to elephants is irrelephant
Anonymous
-----
The problem with quotes on the internet is that you can never tell if they're genuine
Winston Churchill, 1944
-----
Never argue with a fool. Onlookers may not be able to tell the difference.
Mark TwainJohnny J. wrote:
Try to ask about it on Stackoverflow...
:laugh: Turns out it's something in the query that determines what should be updated, which is flipping state between two records. :sigh:
Latest Article:
Create a Digital Ocean Droplet for .NET Core Web API with a real SSL Certificate on a Domain