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
arun sahani
NA
379
0
Entity equivalent in .netcore ?
Jun 15 2020 1:18 PM
My code works fine in asp.net mvc5,when i used the same code in . .netcore 3.1, the entity is not supported,plz help
public
ActionResult AddOrEdit(
int
id = 0)
{
SELECTEDEMPLOYEE emp =
new
SELECTEDEMPLOYEE();
using
(Entities db =
new
Entities())
{
if
(id != 0)
{
emp = db.SELECTEDEMPLOYEEs.Where(x => x.ID == id).FirstOrDefault();
emp.SelectedIDArray = emp.SELECTEDEMPLOYEEIDS.Split(
','
).ToArray();
}
emp.EmployeeCollection = db.VIEW_USER.ToList();
}
return
View(emp);
}
Reply
Answers (
1
)
Enable cors in asp.net core
How to lunch an asp.net windows application to the server