DataGlue 0.1.0
dotnet add package DataGlue --version 0.1.0
NuGet\Install-Package DataGlue -Version 0.1.0
<PackageReference Include="DataGlue" Version="0.1.0" />
paket add DataGlue --version 0.1.0
#r "nuget: DataGlue, 0.1.0"
// 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>
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 | 49 | 5/3/2024 |