EaSQL 1.4.9
See the version list below for details.
dotnet add package EaSQL --version 1.4.9
NuGet\Install-Package EaSQL -Version 1.4.9
<PackageReference Include="EaSQL" Version="1.4.9" />
<PackageVersion Include="EaSQL" Version="1.4.9" />
<PackageReference Include="EaSQL" />
paket add EaSQL --version 1.4.9
#r "nuget: EaSQL, 1.4.9"
#:package EaSQL@1.4.9
#addin nuget:?package=EaSQL&version=1.4.9
#tool nuget:?package=EaSQL&version=1.4.9
EaSQL
EaSQL (/ˈiː.siːkwəl/) provides some quality of life functions that will make a developer's life easier when working with SQL queries.
Running queries
It allows to perform SQL queries like this:
using IDbConnection dbConnection = /* obtain database connection */
int id = 42;
using IDataReader reader = dbConnection.RunQuery($"select * from users where user_id = {id}");
There are different extension methods for different scenarios: The created command instance will contain the query string with all used parameters from the string as SQL parameters.
RunQuery: allows to run a query against the databaseRunCommand: allows to run a single command (e.g. stored procedure call, update) against the databaseGetSingleValue: allows to run a query against the database that expects to return only a single result (e.g. count queries)
Mapping entities
It also allows to define mappings between a data reader to a model type:
public class User
{
public int Id { get; set; }
public string Name { get; set; }
}
Mapper<User> mapper = new()
.DefineMapping(u => u.Id, "id")
.DefineMapping(u => u.Name, "user_name");
IDataReader reader = // perform database query
User user = mapper.ApplyMapping(new(), reader);
Creating databases
EaSQL offers a rudimentary way to define and create database tables:
using SqliteConnection connection = new("Data Source=:memory:");
connection.Open();
DbHandler handler = new();
handler
.AddVersion(s =>
{
s.AddTable("test", t =>
{
t.AddColumn("id", c =>
{
c.HasType(ColumnType.Int).IsNotNull().AsPrimaryKey();
});
t.AddColumn("value", c =>
{
c.HasType(ColumnType.Varchar).WithLength(50);
});
});
s.AddTable("test2", t =>
{
t.AddColumn("id", c =>
{
c.HasType(ColumnType.Int).IsNotNull().AsPrimaryKey();
});
t.AddColumn("value", c =>
{
c.HasType(ColumnType.Varchar).WithLength(50).IsNotNull();
});
});
})
.AddVersion(s =>
{
s.AddTable("test3", t =>
{
t.AddColumn("id", c =>
{
c.HasType(ColumnType.Int).IsNotNull().AsPrimaryKey();
});
t.AddColumn("value", c =>
{
c.HasType(ColumnType.Varchar).WithLength(50);
});
});
});
handler.Setup(connection);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. 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 is compatible. 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. |
-
net10.0
- No dependencies.
-
net9.0
- No dependencies.
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.4.10 | 53 | 5/6/2026 | |
| 1.4.9 | 71 | 4/23/2026 | |
| 1.4.8 | 70 | 4/20/2026 | |
| 1.4.7 | 70 | 4/13/2026 | |
| 1.4.5 | 100 | 2/13/2026 | |
| 1.4.4 | 90 | 2/13/2026 | |
| 1.4.3 | 86 | 2/13/2026 | |
| 1.4.2 | 90 | 2/13/2026 | |
| 1.4.1 | 101 | 2/13/2026 | |
| 1.4.0 | 88 | 2/12/2026 | |
| 1.3.3 | 282 | 11/11/2025 | |
| 1.3.2 | 185 | 10/23/2025 | |
| 1.3.1 | 185 | 10/23/2025 | |
| 1.3.0 | 180 | 10/14/2025 | |
| 1.2.1 | 150 | 9/5/2025 | |
| 1.2.0 | 142 | 9/5/2025 | |
| 1.1.0 | 238 | 8/28/2025 | |
| 1.0.1 | 175 | 2/6/2025 | |
| 1.0.0 | 166 | 2/6/2025 |