PluginSQL 1.0.0
See the version list below for details.
dotnet add package PluginSQL --version 1.0.0
NuGet\Install-Package PluginSQL -Version 1.0.0
<PackageReference Include="PluginSQL" Version="1.0.0" />
paket add PluginSQL --version 1.0.0
#r "nuget: PluginSQL, 1.0.0"
// Install PluginSQL as a Cake Addin #addin nuget:?package=PluginSQL&version=1.0.0 // Install PluginSQL as a Cake Tool #tool nuget:?package=PluginSQL&version=1.0.0
using PluginSQL;
//plugin conection settings MYSQL.Init("127.0.0.1", 3306, "root", "", "demo_core");
Class Table
[TableName("cuenta")] //Custom Table name public class Cuenta : TableBase { [PrimaryKey] public int id { set; get; } public DateTime date_created { set; get; } public DateTime date_updated { set; get; } public string account { set; get; } public string password { set; get; } public string name { set; get; }
public static Cuenta Get(int id)
{
return MYSQL.Query<Cuenta>($"SELECT * FROM cuenta WHERE id='{id}'").FirstOrDefault();
}
public static Cuenta Get(string account, string password)
{
return MYSQL.Query<Cuenta>($"SELECT * FROM cuenta WHERE account='{account.ToLower()}' AND password='{password}'").FirstOrDefault();
}
public static List<Cuenta> List()
{
return MYSQL.Query<Cuenta>($"SELECT * FROM cuenta");
}
}
//How use examples Cuenta cuenta = Cuenta.Get(1)// Get id 1
cuenta.Update(); cuenta.Insert(); cuenta.Delete();
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 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- MySql.Data (>= 8.0.22)
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.2.5 | 41 | 11/21/2024 |
1.2.4 | 61 | 11/6/2024 |
1.2.3 | 73 | 10/10/2024 |
1.2.2 | 65 | 10/10/2024 |
1.2.1 | 64 | 10/10/2024 |
1.2.0 | 68 | 10/10/2024 |
1.1.0 | 171 | 1/18/2024 |
1.0.9 | 616 | 7/19/2022 |
1.0.8 | 416 | 7/8/2022 |
1.0.7 | 482 | 2/27/2022 |
1.0.6 | 597 | 1/20/2022 |
1.0.5 | 591 | 1/20/2022 |
1.0.4 | 399 | 8/5/2021 |
1.0.3 | 378 | 4/6/2021 |
1.0.2 | 418 | 1/4/2021 |
1.0.1 | 444 | 11/25/2020 |
1.0.0 | 484 | 11/20/2020 |