DataGlue 0.1.0

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

// Install DataGlue as a Cake Tool
#tool nuget:?package=DataGlue&version=0.1.0                

DataGlue

A .NET source generator that generates ADO.NET command boilerplate code. No runtime dependency. Define your method, add the SQL query, and you are finished. DataGlue implements your method and writes the ADO.NET boilerplate code for you.

[Query("SELECT * FROM Person WHERE PersonId = @id")]
public partial DbCommand GetPersonById(DbConnection connection, DbTransaction? transaction, int id);

Checking generated files into source control

You might find it useful to check in the generated sources into source control to be able to validate the generated code and to notice changes. You can do this with the following MSBuild settings:

<PropertyGroup>
  
  <EmitCompilerGeneratedFiles>true</EmitCompilerGeneratedFiles>
  
  <CompilerGeneratedFilesOutputPath>Generated</CompilerGeneratedFilesOutputPath>
</PropertyGroup>

<ItemGroup>
   
   <Compile Remove="$(CompilerGeneratedFilesOutputPath)/**/*.cs"/>
</ItemGroup>

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

  • .NETStandard 2.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
0.1.0 43 5/3/2024