TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Tangara G
NA
298
93.1k
can someone tells me what is .First ?
Sep 14 2016 5:36 AM
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 ?
Reply
Answers (
6
)
Mvc 4 login authendication
ViewModel In MVC 4