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
Naruto Reddy
NA
123
39.3k
DbSet does not contain a definition for AddorUpdate
Jun 17 2020 12:48 PM
Hi Everyone,
Do we have any alternate method for AddorUpdate in EF Core .
public
virtual
void
AddOrUpdate(T entity)
{ #region Argument Validation
if
(entity ==
null
)
{
throw
new
ArgumentNullException(
"entity"
);
}
#endregion
DbSet.AddOrUpdate(e => e.Id, entity);
SaveChanges();
}
I am getting an error at "DbSet does not contain a definition for AddorUpdate", Method can anyone help on this.
Reply
Answers (
1
)
Preview files in MVC
SharePoint 2019 and Dynamics 365 F&O Integration