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
Dibyajyoti Palata
1.5k
275
14.4k
How to get a single employee details using entity framework.
Apr 16 2020 2:24 PM
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCWebApp.Models;
namespace MVCWebApp.Controllers
{
public class EmployeeController : Controller
{
// GET: Employee
public ActionResult Details(int id)
{
EmployeeContext employeeContext = new EmployeeContext();
EmployeeModel employees = employeeContext.Employee.Single(emp => emp.ID==id);
return View(employees);
}
}
}
Error:
Reply
Answers (
3
)
Itext sharp date time 16.04.2020 00:00:00
How to fill sql value into datagridview with decrypts value