Click here to Skip to main content
16,012,468 members

Comments by NebroProg (Top 21 by date)

NebroProg 31-Dec-18 6:02am View    
ok,
if the code be like this
student = db.Students.FirstOrDefault(x => x.UserId == userId).Select(x =>x.UserId);
what is the error
NebroProg 31-Dec-18 5:20am View    
I know but I mean this code must return more than one column
NebroProg 31-Dec-18 5:10am View    
Ok,
but this query update more than one column because UserId is foreinkey
so FirstOrDefault is returning one row
NebroProg 7-Nov-18 6:28am View    
thank's all
the problem in forgen key ,so it was solved
NebroProg 5-Nov-18 5:35am View    
I need fully converted SQL to LINQ