Powerful ADO.NET Data Provider for Simple DB
Powerful ADO.NET Data Provider for Simple DB
  • DataBind to Amazon SimpleDB using standard Visual Studio wizards.
  • Comprehensive support for CRUD (Create, Read, Update, and Delete) operations.
  • Use Amazon SimpleDB as a powerful database to enable applications with always-on real-time cloud data storage.
Download Beta

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

Using the Amazon SimpleDB Data Provider

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

 

The Amazon SimpleDB 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 Amazon SimpleDB Data Provider has the same ADO.NET architecture as the native .NET data providers for SQL Server and OLEDB including: SimpleDBConnection, SimpleDBCommand, SimpleDBDataAdapter, SimpleDBDataReader, SimpleDBDataSource, SimpleDBParameter, and SimpleDBTransaction. Because of this you can now access SimpleDB data in an easy, familiar way.

For example:

using (SimpleDBConnection conn = new SimpleDBConnection("...")) {
	string select = "SELECT * FROM SimpleDBTable";
	SimpleDBCommand cmd = new SimpleDBCommand(select, conn);
	SimpleDBDataAdapter adapter = new SimpleDBDataAdapter(cmd);
	using (adapter) {
		DataTable table = new DataTable();
		adapter.Fill(table);		
		...
	}
}

More Than Read-Only: Full Update/CRUD Support

Amazon SimpleDB 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 Amazon SimpleDB Data Provider as easily as interacting with a database table.

using (SimpleDBConnection connection = new SimpleDBConnection(connectionString)) {
	SimpleDBDataAdapter dataAdapter = new SimpleDBDataAdapter(
	"SELECT Id, Phone FROM SimpleDBTable", connection);
  
	dataAdapter.UpdateCommand = new SimpleDBCommand(
		"UPDATE Table SET Phone = @Phone " +
		"WHERE Id = @ID", connection);

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

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

	DataRow firstrow = TableTable.Rows[0];
	firstrow["Phone"] = "555-555-5555";

	dataAdapter.Update(TableTable);
}