https://github.com/mathieumack/sqlite-net.extensions.readers
Extension readers for praeclarum/sqlite-net project
https://github.com/mathieumack/sqlite-net.extensions.readers
Last synced: 3 months ago
JSON representation
Extension readers for praeclarum/sqlite-net project
- Host: GitHub
- URL: https://github.com/mathieumack/sqlite-net.extensions.readers
- Owner: mathieumack
- License: mit
- Created: 2016-09-26T09:54:28.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2019-09-30T21:03:13.000Z (almost 7 years ago)
- Last Synced: 2025-10-11T21:36:29.422Z (9 months ago)
- Language: C#
- Size: 874 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SQLite-Net.Extensions.Readers
Extension readers for https://github.com/praeclarum/sqlite-net project.
This extension let to query the database without binding to a specific class.
The results are Dictionnary of . Each key contains ColumnName, Value contains data.
## Build
[](https://ci.appveyor.com/project/mathieumack/sqlite-net-extensions-readers/branch/master)
## Nuget
[](https://nuget.org/packages/SQLite-Net.Extensions.Readers)
## Platform Support
| Platform | Available
| --- | --- |
| PCL (Profile 111) | ✓ |
## Onboarding Instructions
1. Add nuget package:
Install-Package MvvX.Plugins.HockeyApp
2. In your source file, add the following line in usage declaration section:
using SQLite_Net.Extensions.Readers;
3. In your source file, call ExecuteReader method
var readerResults = connection.ExecuteReader("SQL Query");
## Example
```C#
void ExecuteCustomQuery(SQLiteConnection connection)
{
var tableName = "";
// Execute reader :
var readerResults = connection.ExecuteReader("SELECT * FROM " + tableName);
Console.WriteLine("Read data from table " + tableName);
// Showing results :
foreach (var readerItem in readerResults)
Console.WriteLine(string.Join(";", readerItem.Fields.Select(e => e + ":" + readerItem[e])));
Console.WriteLine("End read data");
}
```
## Support
If you have any questions, problems or suggestions, create an issue.