BigQueryMapping.Generators
1.0.0-alpha
This is a prerelease version of BigQueryMapping.Generators.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package BigQueryMapping.Generators --version 1.0.0-alpha
NuGet\Install-Package BigQueryMapping.Generators -Version 1.0.0-alpha
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.0-alpha" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BigQueryMapping.Generators --version 1.0.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BigQueryMapping.Generators, 1.0.0-alpha"
#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.0-alpha&prerelease // Install BigQueryMapping.Generators as a Cake Tool #tool nuget:?package=BigQueryMapping.Generators&version=1.0.0-alpha&prerelease
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 | 243 | 6/5/2023 |
1.0.1 | 1,010 | 11/18/2022 |
1.0.0 | 453 | 11/17/2022 |
1.0.0-alpha | 319 | 11/17/2022 |