microsoft / InventorySample

Sample UWP application for LOB scenarios

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to add a dbset using the code first entity frameworks?

phanchaulong opened this issue · comments

How to add a dbset using the code first entity frameworks in this project?
please help me.
Thanks so much

commented
  1. Add the entities to the Inventory.Data project (folder Data). Check the existing ones to see how the mapping works.
  2. Modify the DataService accordingly, adding your methods to query/update the entity (IDataService interface and DataServiceBase class)
  3. Use it in your service class (see folder Services inside main project)
    Regards