BigQueryMapping 1.0.0

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

// Install BigQueryMapping as a Cake Tool
#tool nuget:?package=BigQueryMapping&version=1.0.0

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);
}
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0 1,098 11/17/2022
1.0.0-alpha 105 11/17/2022
0.0.7-alpha 155 11/8/2022
0.0.6-alpha 169 11/8/2022
0.0.5-alpha 153 11/8/2022
0.0.4-alpha 178 11/8/2022
0.0.3-alpha 144 11/8/2022
0.0.2-alpha 171 11/8/2022