Esatto.DataAccess 1.0.7

dotnet add package Esatto.DataAccess --version 1.0.7                
NuGet\Install-Package Esatto.DataAccess -Version 1.0.7                
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="Esatto.DataAccess" Version="1.0.7" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Esatto.DataAccess --version 1.0.7                
#r "nuget: Esatto.DataAccess, 1.0.7"                
#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 Esatto.DataAccess as a Cake Addin
#addin nuget:?package=Esatto.DataAccess&version=1.0.7

// Install Esatto.DataAccess as a Cake Tool
#tool nuget:?package=Esatto.DataAccess&version=1.0.7                

Esatto Data Access

Micro-ORM for SQL Server

class SomeDal
{
    private readonly DbConf con;

    public SomeDal(ILogger<SomeDal> logger)
    {
        this.con = new DbConf(logger, "Server=localhost;Database=Esatto;User Id=sa;Password=password;", "schemaName");
    }
    
    public void CreateUpdateFrobble(int clientId, Frobble Frobble)
    {
        dynamic sp = con.StoredProcedure("CreateUpdateFrobble");
        sp.ZX_FrobbleID = Frobble.IsPersisted ? Frobble.ID : (object)SqlDbType.Int;
        sp.ClientID = clientId;
        sp.InventorySetID = Frobble.InventorySet.ID;
        sp.Execute();
        Frobble.ID = sp.ZX_FrobbleID;
    }

    internal void SetFrobbleLocation(int FrobbleId, int clientId, FrobbleLocation location)
    {
        con.ExecuteStoredProcedure("SetFrobbleLocation", new
        {
            FrobbleId,
            clientId,
            packagerId,
            locationName
        });
    }
    
    public List<Widget> GetAllWidgets(int ClientID, int? WidgetID)
    {
        using var reader = con.ExecuteStoredProcedureReader("GetAllWidgets", new { ClientID, WidgetID });
        return reader.GetList<Widget>("g_", FillWidget);
    }

    private void FillWidget(Widget g, ResultSet rs)
    {
        g.GroupPolicy = rs.GetPartialObject<WidgetPolicyHeader>("gp_", FillWidgetPolicyHeader);
    }
}
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. 
.NET Framework net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
1.0.7 121 10/7/2024
1.0.6 141 6/23/2024
1.0.2 152 4/3/2024
1.0.1 224 4/22/2023