BigQueryMapping.Generators
1.0.2
dotnet add package BigQueryMapping.Generators --version 1.0.2
NuGet\Install-Package BigQueryMapping.Generators -Version 1.0.2
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="BigQueryMapping.Generators" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BigQueryMapping.Generators --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BigQueryMapping.Generators, 1.0.2"
#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 BigQueryMapping.Generators as a Cake Addin #addin nuget:?package=BigQueryMapping.Generators&version=1.0.2 // Install BigQueryMapping.Generators as a Cake Tool #tool nuget:?package=BigQueryMapping.Generators&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
BigQueryMapper
Source generator utility for converting BigQueryRows to your DTO.
Usage
Install NuGet packages
dotnet add package BigQueryMapping
dotnet add package BigQueryMapping.Generators
Apply attribute to your partial class
Any property with an accessible setter will be included in mapping. You can specify a column name using a ColumnAttribute.
using BigQueryMapping
[BigQueryMapped]
public partial class MyRowDto
{
public string SomeId { get; set; }
[Column("some_RiDiCuLoUs_name")]
public string SensibleName { get; set; }
}
The souce generator will implement IBigQueryGenerated<MyRowDto>
which has a static method FromBigQueryRow(BigQueryRow row)
that you can use to get your DTO out.
var rows = await _bigQuery.ExecuteQueryAsync(sql, parameters, cancellationToken, new());
foreach (var row in rows)
{
yield return MyRowDto.From(row);
}
There are no supported framework assets in this package.
Learn more about Target Frameworks and .NET Standard.
-
.NETStandard 2.0
- Microsoft.CodeAnalysis.CSharp (>= 4.3.1)
- System.ComponentModel.Annotations (>= 5.0.0)
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.2 | 240 | 6/5/2023 |
1.0.1 | 1,007 | 11/18/2022 |
1.0.0 | 452 | 11/17/2022 |
1.0.0-alpha | 318 | 11/17/2022 |