예제 #1
0
 // Obter todas as categorias
 public List <Category> GetCategories()
 {
     return(ReadOperations.GetAllWithChildren <Category>(sqliteconnection));
 }
예제 #2
0
 public List <Department> GetAllDepartment()
 {
     return(ReadOperations.GetAllWithChildren <Department>(connection, recursive: true).ToList());
 }
예제 #3
0
 // Obter todos os produtos
 public List <Product> GetProductList()
 {
     // using SQLite Extensions to solve relations
     return(ReadOperations.GetAllWithChildren <Product>(sqliteconnection));
 }
예제 #4
0
 public List <User> GetUsersAsync()
 {
     //return db.Table<Question>().ToListAsync();
     return(ReadOperations.GetAllWithChildren <User>(db));
 }