How to add a dbset using the code first entity frameworks?
phanchaulong opened this issue · comments
phanchaulong.pcl commented
How to add a dbset using the code first entity frameworks in this project?
please help me.
Thanks so much
Dan commented
- Add the entities to the Inventory.Data project (folder Data). Check the existing ones to see how the mapping works.
- Modify the DataService accordingly, adding your methods to query/update the entity (IDataService interface and DataServiceBase class)
- Use it in your service class (see folder Services inside main project)
Regards