Connect .NET Applications with QuickBooks
Connect .NET Applications with QuickBooks
  • DataBind to QuickBooks & QuickBooks Online using standard Visual Studio wizards.
  • Comprehensive support for CRUD (Create, Read, Update, and Delete) operations.
  • Integrate with QuickBooks Customers, Transactions, Invoices, Sales Receipts, Reports, and more!
Download Free Trial

The QuickBooks Data Provider for ADO.NET offers the most natural way to access QuickBooks data from any .NET application. Simply use QuickBooks Data Provider objects to connect and access data just as you would access any traditional database. You will be able to use the QuickBooks Data Provider through Visual Studio Server Explorer, in code through familiar classes, and in data controls like DataGridView, GridView, DataSet, etc.

Using the QuickBooks Data Provider

The QuickBooks Data Provider wraps the complexity of accessing QuickBooks services in an easy-to-integrate, fully-managed ADO.NET Data Provider. Applications then access QuickBooks through the QuickBooks Data Provider with simple Transact-SQL.

 

The QuickBooks Data Provider for ADO.NET hides the complexity of accessing data and provides additional powerful security features, smart caching, batching, socket management, and more.

Working with DataAdapters, DataSets, DataTables, etc.

The QuickBooks Data Provider has the same ADO.NET architecture as the native .NET data providers for SQL Server and OLEDB including: QuickBooksConnection, QuickBooksCommand, QuickBooksDataAdapter, QuickBooksDataReader, QuickBooksDataSource, QuickBooksParameter, and QuickBooksTransaction. Because of this you can now access QuickBooks data in an easy, familiar way.

For example:

using (QuickBooksConnection conn = new QuickBooksConnection("...")) {
	string select = "SELECT * FROM QuickBookscustomer";
	QuickBooksCommand cmd = new QuickBooksCommand(select, conn);
	QuickBooksDataAdapter adapter = new QuickBooksDataAdapter(cmd);
	using (adapter) {
		DataTable table = new DataTable();
		adapter.Fill(table);		
		...
	}
}

More Than Read-Only: Full Update/CRUD Support

QuickBooks Data Provider goes beyond read-only functionality to deliver full support for Create, Read Update, and Delete operations (CRUD). Your end-users can interact with the data presented by the QuickBooks Data Provider as easily as interacting with a database table.

using (QuickBooksConnection connection = new QuickBooksConnection(connectionString)) {
	QuickBooksDataAdapter dataAdapter = new QuickBooksDataAdapter(
	"SELECT Id, Where FROM customer", connection);
  
	dataAdapter.UpdateCommand = new QuickBooksCommand(
		"UPDATE customer SET Where = @Where " +
		"WHERE Id = @ID", connection);

	dataAdapter.UpdateCommand.Parameters.AddWithValue("@Where", "Where");
	dataAdapter.UpdateCommand.Parameters.AddWithValue("@Id", "80000173-1387137645");

	DataTable customerTable = new DataTable();
	dataAdapter.Fill(customerTable);

	DataRow firstrow = customerTable.Rows[0];
	firstrow["Where"] = "New Location";

	dataAdapter.Update(customerTable);
}