microsoft / InventorySample

Sample UWP application for LOB scenarios
MIT License
591 stars 199 forks source link

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

Closed phanchaulong closed 5 years ago

phanchaulong commented 6 years ago

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

codingdna2 commented 6 years ago
  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