I'm new to linq to sql and I have some complex SQL query.
My SQL Server query does this shortly: I have 2 tables, product (a) and productorder (b). Product has amount and a second amount which warns the customer how many items still in progress.
In "a" we have 10 papers if we order 5. Then table a second amount value is 5. If we order more : 5 = 5 + more
So I write my T-SQL here. I want a linq to sql
UPDATE a
SET a.secondamount = a.secondamount + b.orderedamount
INNER JOIN b ON a.productid == b.productid
WHERE b.status = false ;