https://github.com/basemax/oledb
Simple and compact class library for working with the MS OLE Database.
https://github.com/basemax/oledb
class csharp csharp-code csharp-library csharp-script database database-adapter database-configuration database-connection database-connector database-management databases library library-database oledb
Last synced: 2 months ago
JSON representation
Simple and compact class library for working with the MS OLE Database.
- Host: GitHub
- URL: https://github.com/basemax/oledb
- Owner: BaseMax
- License: gpl-3.0
- Created: 2018-08-17T22:09:46.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-27T10:25:28.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T04:17:30.235Z (2 months ago)
- Topics: class, csharp, csharp-code, csharp-library, csharp-script, database, database-adapter, database-configuration, database-connection, database-connector, database-management, databases, library, library-database, oledb
- Language: C#
- Size: 18.6 KB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OLEDB
Simple and compact class library for working with the MS OLE Database.OLEDB = OLE DB = Object Linking + Embedding Database
### Using
```
OlED db = new OlED();
```### Library features
- [x] get count rows
- [x] get rows values
- [x] get rows and fetch for DataGridView
- [ ] delete
- [ ] insert
- [ ] only execute a query### Sample
```
string connections="provider=microsoft.jet.oledb.4.0;data source=database.mdb;jet oledb:Database Password=sample";
OlED db = new OlED();
OleDbConnection connection = new OleDbConnection(connections);
OleDbCommand command = new OleDbCommand("SELECT * from barcode",connection);
////////////////////////////////////////////////////////////////////////
MessageBox.Show("Count Rows : " + db.count(command,connection).ToString());
////////////////////////////////////////////////////////////////////////
dataGridView1.DataSource = db.get(command,connection).Tables[0];
```In this case, the database file (database.mdb) should be located next to the executable file.