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
Migrating EF to EF Core
Aug 23 2020 4:59 AM
Hello Experts,
I have been stuck while doing migrating.
In the part of migrating, I started with EF to EF Core.
In the Repository, we have something like below, which was added by using a library called System.Data.Entity.Migrations [Implemented by inheriting class called DbSetMigrationsExtensions]
public virtual void AddOrUpdate(Expression
> identifierExpression, T entity)
{
if (identifierExpression == null)
throw new ArgumentNullException(nameof(identifierExpression));
if (entity == null)
throw new ArgumentNullException(nameof(entity));
DbSet.AddOrUpdate(identifierExpression, entity);
SaveChanges();
}
The same method I have to call in my new migrating code.
But I am not able to add the same library in EF Core. Are there any alternate ways we can do this. ?
Any help would be really appreciated.
Reply
Answers (
1
)
what is meant by adding challenge to http response?
how select ed all month through save one parameter in c# desktop appli