troubleshooting Question

EF fluent api vs db set , how do I convert DbSet<Entity> into modelbuilder.Entity<entity> ?

Avatar of nicedone
nicedone asked on
C#.NET ProgrammingASP.NET
1 Comment1 Solution141 ViewsLast Modified:
Hi,

I have a context class that does not use DbSets only modelbuilder.Entity, and i am removing some old class files which are used in the application. One of the classes i need to remove has the following structure below(dbset) but when i remove it i get errors because cars are used in the application but i dont know how i can give a property name as cars in    modelBuilder.Entity<MotorVehicle>();



public virtual DbSet<Entity> cars{ get; set; }
ASKER CERTIFIED SOLUTION
Easwaran Paramasivam
Senior Software Engineer

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros