Tech
Forums
Jobs
Books
Events
Live
Interviews Prep
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
6
Reply
can someone tells me what is .First ?
Tangara G
Sep 14 2016 5:36 AM
247
Reply
Hi experts,
I have this rather stupid question yet I duno the answer. Hope someone can let me know the answer :
public
AzolaDL.Account getAccount(string userName, string type){
AzolaDL.Account account =
new
AzolaDL.Account();
try
{
account = db.Accounts.First(e => e.userName == userName && e.type == type);
}
catch
(Exception e){
return null;
}
return account;
}
Can I know why do we need to put .First ?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
6
)
Next Recommended Forum
Mvc 4 login authendication
ViewModel In MVC 4