Savers.MySql 1.0.2

The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Savers.MySql --version 1.0.2
NuGet\Install-Package Savers.MySql -Version 1.0.2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Savers.MySql" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Savers.MySql --version 1.0.2
#r "nuget: Savers.MySql, 1.0.2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Savers.MySql as a Cake Addin
#addin nuget:?package=Savers.MySql&version=1.0.2

// Install Savers.MySql as a Cake Tool
#tool nuget:?package=Savers.MySql&version=1.0.2

This is the MySql Saver. Example of how to use to generate the DDL is below:

new MySqlSaver<Map>()
    .Activate(ConnectionString);

To use the Sql generation, it you would need to either create a new MySqlSaver or use an already existing saver. After that you can call the StartQuery method which will allow you to easily create the Sql quickly. This can be seen below, where we start the query to create the selection statement.

new MySqlSaver<TestClass>().StartQuery().Select("TestClassString")

After choosing which statement to use, you can then add on a number of clauses such as the Where, OrderBy or other clauses. These will automatically get ordered into the correct order needed for the Sql. You can see examples for the different clauses below.

Statements List:

Selection Statement:

Select | All Parameters:

new MySqlSaver<TestClass>().StartQuery().Select()

Select | With Parameters:

new MySqlSaver<TestClass>().StartQuery().Select("TestClassString")

Count Statement:

new MySqlSaver<TestClass>().StartQuery().Count()

Sum Statement:

new MySqlSaver<TestClass>().StartQuery().Sum("TestValue")

Average Statement:

Average | One Field:

new MySqlSaver<TestClass>().StartQuery().Average("TestValue")

Average | Multiple Fields:

new MySqlSaver<TestClass>().StartQuery().Average("TestValue", "TestValue2").Finalise()

Insert Statement:

new MySqlSaver<TestClass>().StartQuery().Insert(new TestClass { TestClassString = "TestString" })

Update Statement:

Update | One Field:

new MySqlSaver<TestClass>().StartQuery().Update(("TestClassString", "Example")).Finalise()

Update | Multiple Fields:

new MySqlSaver<TestClass>().StartQuery().Update(("TestClassString", "Example"), ("TestExampleInt", 5)).Finalise()

Clauses:

Where Clause:

Where Start:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .WhereStarts(("TestValueString", "abc"))
    .Finalise()

Where End:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .WhereEnds(("TestValueString", "abc"))
    .Finalise()

Where Contains:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .WhereContains(("TestValueString", "abc"))
    .Finalise()

Where (Normal):

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .Where(("TestValueString", "abc"))
    .Finalise()

Order By Clause:

Order By | All Ordering By Ascending:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .OrderBy(Order.Ascending, "TestValue", "TestValue2")
    .Finalise()

Order By | All Ordering By Descending:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .OrderBy(Order.Descending, "TestValue", "TestValue2")
    .Finalise()

Order By | Descending and Ascending:

new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .OrderBy(("TestValue", Order.Ascending), ("TestValue2", Order.Descending))
    .Finalise()

Limit Clause:

 new MySqlSaver<TestClass>()
    .StartQuery()
    .Count()
    .Limit(10)
    .Finalise()
Product 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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