hi
i am using entity frame work in asp.net application.
| Empid | login |
| 1 | 102 |
| 2 | 103 |
| 3 | 104 |
how to get only one login of the empid=1 empid is primary key.
public static int GetLogid(int eid)
{
int res;
int bid = (from a in Entities.EmpLog
where EmpId==eid
select a.logId).First();
return res;
}
in the above format raise the error. int? to int
2 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.

Munesh SharmaPosted Jun 1, 2015, 7:46 AM
Shuvojit HalderPosted Jun 1, 2015, 5:16 AM