Link to home
Start Free TrialLog in
Avatar of nicedone
nicedone

asked on

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

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
Avatar of Easwaran Paramasivam
Easwaran Paramasivam
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial