RebelQuery 1.1.1
dotnet add package RebelQuery --version 1.1.1
NuGet\Install-Package RebelQuery -Version 1.1.1
<PackageReference Include="RebelQuery" Version="1.1.1" />
<PackageVersion Include="RebelQuery" Version="1.1.1" />
<PackageReference Include="RebelQuery" />
paket add RebelQuery --version 1.1.1
#r "nuget: RebelQuery, 1.1.1"
#:package RebelQuery@1.1.1
#addin nuget:?package=RebelQuery&version=1.1.1
#tool nuget:?package=RebelQuery&version=1.1.1
RebelQuery
SQL helper for .NET. Map SQL Server rows to POCOs with parameterized queries. The class name is the table name; the connection string lives on the type.
Supports netstandard2.0 and net8.0.
Install
dotnet add package RebelQuery
Quick start
using RebelQuery;
public class Client : RQuery
{
protected override string ConnectionString =>
"Server=localhost;Database=App;Trusted_Connection=True;";
[PrimaryKey]
public int Id { get; set; }
public string Name { get; set; }
public string Email { get; set; }
}
var db = new Client();
var result = await db.RQueryExecuteAsync<Client>(
"SELECT Id, Name, Email FROM Client WHERE Id = @id",
new { id = 6 });
if (result.IsSuccessful)
{
foreach (var row in result.Content)
Console.WriteLine($"{row.Id} {row.Name}");
}
@name values are sent as SqlParameter. Do not concatenate user input into the SQL string.
Fluent select / update
var listed = await db
.PassSelectArgs(new { db.Name, db.Email })
.PassWhereArgs(new { Id = "=6" })
.RQuerySelectAsync<Client>();
var updated = await db
.PassWhereArgs(new { Id = "=6" })
.RQueryUpdateAsync<Client>(new { Name = "Ada", Email = "ada@example.com" });
For INSERT and DELETE, use explicit SQL.
Result
Every *Async method returns RQueryResponse<T>: IsSuccessful, Content, RowsAffected, DevMessage, UserMessage, SqlString.
Export: result.ToExcell().
More
Docs and source: github.com/rafaelrabelos/RebelQuery
License: GNU GPL v3
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- ClosedXML (>= 0.95.3)
- System.Data.SqlClient (>= 4.8.6)
-
net8.0
- ClosedXML (>= 0.95.3)
- System.Data.SqlClient (>= 4.8.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.1.1 | 36 | 9/9/2026 |
| 1.1.0 | 43 | 9/9/2026 |
| 1.0.3.99 | 793 | 8/22/2020 |
| 1.0.3.8 | 837 | 2/7/2020 |
| 1.0.3.6 | 694 | 2/6/2020 |
| 1.0.3.5 | 770 | 2/5/2020 |
| 1.0.3.4 | 764 | 2/2/2020 |
| 1.0.3.3 | 684 | 1/31/2020 |
| 1.0.3.2 | 692 | 1/28/2020 |
| 1.0.3 | 724 | 1/20/2020 |
| 1.0.3-alpha | 621 | 9/11/2019 |
| 1.0.2 | 703 | 9/9/2019 |
| 1.0.1 | 1,043 | 9/1/2019 |
| 1.0.1-a | 562 | 9/3/2019 |
| 1.0.0 | 693 | 9/1/2019 |
(08/2020)
v1.0.3.9
- Scalar variable features
(05/02/2020)
v1.0.3.5
-Fixed error when query results are empty
(05/02/2020)
v1.0.3.5
- Optimized core architecture;
- Now supporting excel export over ToExcel() function
(02/02/2020)
v1.0.3.4
- Optimizes core with async tasks;
- Fixes fixes null exception on wrong sql syntax;
- Fixes Dates mapping to string;
(31/01/2020)
v1.0.3.3
- Improve data types mapping for numeric types;
- Fixes Nullable mapping error;
- Fixes DateTimeOffset mapping to DateTime;
- Adds a new set of test case to prevent which updates make crash in working functionalities;
- Improve speed of the core;
- More detailed errors messages;
(28/01/2019)
v1.0.3.2
- Adds a new version to the base version that include backward supports .net Core 2.x version. Even so, its compatible with 3.x .net Core version
(19/01/2019)
v1.0.3
- TDD Development;
- Fix empty string on where args;
- Improve connection security;
- Attributes support added: PrimaryKey; SqlAttribute;
- Improved user query engine interface;
- Support to explicit queries;
- Implements update query.
v1.0.3-ALPHA
- Makes The development as alpha;
- Attributes support added: PrimaryKey; SqlAttribute;
- Improved user query engine interface;
- Support to explicit queries;
- Implements update query.
v1.0.1 ALPHA
- Makes The development as alphanuget
(09/01/2019)
v1.0.1
- Updates project files: License added GNU GENERAL PUBLIC LICENSE
(09/01/2019)
v1.0.0
- Project: The first release. The projet is under development to brings a stable version.