BigQueryMapping 1.0.0-alpha
This is a prerelease version of BigQueryMapping.
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 --version 1.0.0-alpha
NuGet\Install-Package BigQueryMapping -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" 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 --version 1.0.0-alpha
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: BigQueryMapping, 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 as a Cake Addin #addin nuget:?package=BigQueryMapping&version=1.0.0-alpha&prerelease // Install BigQueryMapping as a Cake Tool #tool nuget:?package=BigQueryMapping&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);
}
Product | Versions 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.
-
net7.0
- Google.Cloud.BigQuery.V2 (>= 3.2.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.0 | 1,128 | 11/17/2022 |
1.0.0-alpha | 123 | 11/17/2022 |
0.0.7-alpha | 185 | 11/8/2022 |
0.0.6-alpha | 200 | 11/8/2022 |
0.0.5-alpha | 184 | 11/8/2022 |
0.0.4-alpha | 207 | 11/8/2022 |
0.0.3-alpha | 175 | 11/8/2022 |
0.0.2-alpha | 202 | 11/8/2022 |