I have a database with a GUID and images,
I want to get the first record (if exists) and return results
i want to get the second record only if a second record exists
I guess I have to return the records frmo the table then just movenext so to speak in a loop to select the second record but guessing there is a better faster way to do that in linq
I see some example for .take(1) I assume that will always take the first record and return nothing else. I dont need this to be random. and what happens if there are no records return?
for the second function
I gues its .skip(1).take(1) will that for sure skip the first record and return the second one to my var? again what if thier is no second record i would not want any results return if this is not the case (no scond record then want nothing back and no error)
View Complete Post