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.
<PackageVersion Include="DataGlue" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="DataGlue" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version 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.
#:package DataGlue@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=DataGlue&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=DataGlue&version=0.1.0
                    
Install as a Cake Tool

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 74 5/3/2024