// Deletar tudo public void DeleteAllProducts() { List <Product> products = GetProductList(); WriteOperations.DeleteAll(sqliteconnection, products); }
public void DeleteAllDepartment() { WriteOperations.DeleteAll(connection, GetAllDepartment(), true); }
// Deletar tudo public void DeleteAllCategories() { List <Category> categories = GetCategories(); WriteOperations.DeleteAll(sqliteconnection, categories); }
public void RefreshDepartment(IList <Department> listDepartment) { WriteOperations.DeleteAll(connection, GetAllDepartment(), true); WriteOperations.InsertOrReplaceAllWithChildren(connection, listDepartment, true); }