VTNET.Vitado 1.0.12

There is a newer version of this package available.
See the version list below for details.
dotnet add package VTNET.Vitado --version 1.0.12                
NuGet\Install-Package VTNET.Vitado -Version 1.0.12                
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="VTNET.Vitado" Version="1.0.12" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add VTNET.Vitado --version 1.0.12                
#r "nuget: VTNET.Vitado, 1.0.12"                
#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 VTNET.Vitado as a Cake Addin
#addin nuget:?package=VTNET.Vitado&version=1.0.12

// Install VTNET.Vitado as a Cake Tool
#tool nuget:?package=VTNET.Vitado&version=1.0.12                

ADO.NET wrapper library

ASP/BLAZOR

builder.Services.AddVitado("Data Source=.;Initial Catalog=...;MultipleActiveResultSets=True;User Id=...;Password=...");

Get Table

    var data = db.GetTable(
        query: "SELECT * FROM FB_BANLE_TAM_ORDER WHERE KHOACT = @KHOACT",
        args: new("AE1567B4-640B-EE11-998C-6C2B59CACE4E")
    );    
    var data2 = db.GetTable(
        queryStored: "FB_BANLE_TAM_ORDER",
        args: new("AE1567B4-640B-EE11-998C-6C2B59CACE4E")
    );

Get params out

    var paramsOut = new VitParamsOut(("@UID", 0), ("@NAME", ""));
    await db.GetParamOutAsync(
        queryStored: "[dbo].[SYS_LOGON]",
        paramsOut: paramsOut,
        args: new(("@USER", 1001), ("@PASSWD", "")));
    _ = int.TryParse(paramsOut["@UID"]?.ToString(), out var id);
    var name = paramsOut["@NAME"]?.ToString() ?? "";

Execute

    var rowAffect = await db.ExecuteAsync(
    query: "INSERT INTO Customers (Name,Email,Address) VALUES (@Name,@Email,@Address)", 
    args: new(
        ("@Name", "Võ Thành Thuận"),
        ("Email", "vothuan@vtt.com"),
        ("Address", "AG, VN")
    ));

    var rowAffect1 = await db.ExecuteAsync(query: "UPDATE Customers SET Name=@Name,Email=@Email,Address=@Address where id = @id", 
    args:new(
        ("@Name", "Võ Thành Thuận 1"),
        ("@Email", "vothuan1@vtt.com"),
        ("Address", "SG1, VN")
        ));

Render SqlCommand

    var rowAffect = await db.ExecuteAsync(VitRender.Insert("Customers", 
        ("Name", "Võ Thành Thuận"), 
        ("Email", "vothuan@vtt.com"), 
        ("Address", "AG, VN"))
            .Result);

    var rowAffect1 = await db.ExecuteAsync(VitRender.Update("Customers", 
        ("Name", "Võ Thành Thuận1"), 
        ("Email", "vothuan1@vtt.com"), 
        ("Address", "SG1, VN"))
            .AddQuery("where id = @id", ("id", 1))
            .Result);

GetTable

    var data = db.GetTable(
        query: "SELECT * FROM FB_BANLE_TAM_ORDER WHERE KHOACT = @KHOACT",
        args: new("AE1567B4-640B-EE11-998C-6C2B59CACE4E")
    );
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on VTNET.Vitado:

Package Downloads
VTNET.Vitado.SqlServer

An SqlServer wrapper library

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
7.2.0 128 8/9/2024
7.2.0-beta.17 69 7/25/2024
7.2.0-beta.16 44 7/24/2024
7.2.0-beta.15 70 7/21/2024
7.2.0-beta.14 64 7/16/2024
7.2.0-beta.13 47 7/16/2024
7.2.0-beta.12 53 7/16/2024
7.2.0-beta.11 49 7/16/2024
7.2.0-beta.10 52 7/15/2024
7.2.0-beta.9 46 7/15/2024
7.2.0-beta.8.1 57 7/15/2024
7.2.0-beta.8 49 7/15/2024
7.2.0-beta.7 49 7/15/2024
7.2.0-beta.6 54 7/15/2024
7.2.0-beta.5 47 7/14/2024
7.2.0-beta.4 58 7/3/2024
7.2.0-beta.3 54 7/1/2024
7.2.0-beta.2 70 6/27/2024
7.2.0-beta.1 47 6/26/2024
7.1.0 107 5/7/2024
7.0.2 152 2/28/2024 7.0.2 is deprecated because it is no longer maintained and has critical bugs.
7.0.1 169 2/21/2024 7.0.1 is deprecated because it is no longer maintained and has critical bugs.
7.0.0 132 2/21/2024 7.0.0 is deprecated because it is no longer maintained and has critical bugs.
2.0.10 122 1/19/2024
2.0.9 128 1/18/2024 2.0.9 is deprecated because it is no longer maintained and has critical bugs.
2.0.8 144 1/15/2024 2.0.8 is deprecated because it is no longer maintained and has critical bugs.
2.0.7 190 11/27/2023 2.0.7 is deprecated because it is no longer maintained and has critical bugs.
2.0.6 145 11/3/2023 2.0.6 is deprecated because it is no longer maintained and has critical bugs.
2.0.5 152 10/27/2023 2.0.5 is deprecated because it is no longer maintained and has critical bugs.
2.0.4 138 10/27/2023 2.0.4 is deprecated because it has critical bugs.
2.0.3 143 10/27/2023 2.0.3 is deprecated because it has critical bugs.
2.0.2 143 10/27/2023 2.0.2 is deprecated because it has critical bugs.
2.0.1 173 10/25/2023 2.0.1 is deprecated because it is no longer maintained and has critical bugs.
2.0.0 164 10/12/2023 2.0.0 is deprecated because it is no longer maintained and has critical bugs.
1.1.3 174 9/27/2023 1.1.3 is deprecated because it is no longer maintained and has critical bugs.
1.1.2 147 9/20/2023 1.1.2 is deprecated because it is no longer maintained and has critical bugs.
1.1.1 166 9/13/2023 1.1.1 is deprecated because it is no longer maintained and has critical bugs.
1.1.0 173 9/13/2023 1.1.0 is deprecated because it is no longer maintained and has critical bugs.
1.0.15 170 9/12/2023 1.0.15 is deprecated because it is no longer maintained and has critical bugs.
1.0.14 174 9/12/2023 1.0.14 is deprecated because it is no longer maintained and has critical bugs.
1.0.13 175 9/8/2023 1.0.13 is deprecated because it is no longer maintained and has critical bugs.
1.0.12 178 8/25/2023 1.0.12 is deprecated because it is no longer maintained and has critical bugs.
1.0.11 171 8/11/2023 1.0.11 is deprecated because it is no longer maintained and has critical bugs.
1.0.10 182 8/10/2023 1.0.10 is deprecated because it has critical bugs.
1.0.9 169 8/9/2023 1.0.9 is deprecated because it has critical bugs.
1.0.8 171 8/9/2023 1.0.8 is deprecated because it has critical bugs.
1.0.7 170 8/9/2023 1.0.7 is deprecated because it has critical bugs.
1.0.6 183 8/4/2023 1.0.6 is deprecated because it has critical bugs.
1.0.5 181 8/3/2023 1.0.5 is deprecated because it has critical bugs.
1.0.4 176 8/3/2023 1.0.4 is deprecated because it has critical bugs.
1.0.3 176 8/3/2023 1.0.3 is deprecated because it has critical bugs.
1.0.2 171 8/3/2023 1.0.2 is deprecated because it has critical bugs.
1.0.1 180 8/2/2023 1.0.1 is deprecated because it has critical bugs.
1.0.0 181 8/2/2023 1.0.0 is deprecated because it has critical bugs.