Just wondering what the best (fastest execution time) method for translating the following SQL to LINQ to SQL is?
IF EXISTS (SELECT TOP 1 * FROM HealthIndicators WHERE LogDate = getdate())
UPDATE HealthIndicators SET Timeouts = 32
ELSE INSERT INTO HealthIndicators (Timeouts, 32)
I apologise if this is a repost but I haven’t been able to find an answer on the subject (I’m new, please be nice!)
1 Answer