locked
SImpleIOC services registration in universal app

    Question

  • Dear all,

    I am building an universall app which collect data from an SQLite database.

    I am a bit new in SimpleIOC use from MVVMLIght tool kit and run agains different sample but could not find out correct implementation from my case.

    My goal is to provide a a service which is collecting data from database tables.
    I have actually 2 options design for this :

    option 1 : Create a big class called DatabaseService in which I will define all CRUD operation against all my tables

    option 2 : Create individual service for each table in my database

    Questions :

    - What is the best option to go ?

    - If option 2 is the prefered one, does that mean that I need to register each of my classes as individual service Inside ViewModelLocator ?

    Thanks for those clarification

    regards

    Thursday, April 9, 2015 8:04 AM

Answers