Using db = New sContext(ConnectionString) 'find record Dim q = From s In db.Spots _ Where s.sId = iId _ Select s If q.Count() = 1 Then Dim sp As SpotClass = (From s In db.Spots _ Where s.sId = iId _ Select s).First() sp.sActive = "False" sp.sEndDate = DateTime.Now.ToUniversalTime db.SubmitChanges() End If
UPDATE TBLTASK SET COMPLETEDATE = NOW WHERE TASKTYPE = 'AUTO'
|I need help displaying 2 models in one view in my MVC.Net application with C# code behind||5||34|
|How to save a picture box in a specific network folder using vb.net 2013||7||26|
|Need help on C# Linq query on object||6||53|
|I am trying to generate output tiff images and I receive the error "Parameter is not valid"? Do you know how I can resolve this error?||1||39|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
21 Experts available now in Live!