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
Mohsin Arif
295
6k
137.8k
retireve data from db in mvc
Apr 27 2019 3:09 AM
ist db
then
public
List<CandidatesData> GetCandidatesDatas()
{
List < CandidatesData>candidatesdataModel =
new
List<CandidatesData>();
using
(OOP_ProjectEntities db =
new
OOP_ProjectEntities())
{
candidatesdataModel = db.CandidatesDatas.ToList();
}
return
candidatesdataModel;
}
then
public
ActionResult Index()
{
modelCandidates model =
new
modelCandidates();
List<CandidatesData> data = model.GetCandidatesDatas();
return
View(data);
}
Reply
Answers (
1
)
Integrating safran mph-se002a finger print scanner
Barcode generation. How to autoprint barcode sequentially