{"id":24248933,"url":"https://github.com/halomakes/bigquerymapping","last_synced_at":"2026-05-11T06:54:47.976Z","repository":{"id":62907736,"uuid":"563525357","full_name":"halomakes/BigQueryMapping","owner":"halomakes","description":"Source generator for working with BigQuery Storage API","archived":false,"fork":false,"pushed_at":"2023-06-05T16:01:15.000Z","size":71,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T05:36:14.760Z","etag":null,"topics":["bigquery","csharp","google"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/halomakes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2022-11-08T19:48:28.000Z","updated_at":"2022-11-21T21:15:09.000Z","dependencies_parsed_at":"2023-08-30T09:44:33.231Z","dependency_job_id":"3cc64abc-568a-40e8-9942-9606b35af7df","html_url":"https://github.com/halomakes/BigQueryMapping","commit_stats":null,"previous_names":["halomademeapc/bigquerymapping"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halomakes%2FBigQueryMapping","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halomakes%2FBigQueryMapping/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halomakes%2FBigQueryMapping/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/halomakes%2FBigQueryMapping/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/halomakes","download_url":"https://codeload.github.com/halomakes/BigQueryMapping/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241884716,"owners_count":20036805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bigquery","csharp","google"],"created_at":"2025-01-15T00:48:53.890Z","updated_at":"2026-05-11T06:54:47.931Z","avatar_url":"https://github.com/halomakes.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BigQueryMapper\nSource generator utility for converting [BigQueryRow](https://cloud.google.com/dotnet/docs/reference/Google.Cloud.BigQuery.V2/latest/Google.Cloud.BigQuery.V2.BigQueryRow)s to your DTO. \n\n## Usage\n\n**Install NuGet packages**\n```bash\ndotnet add package BigQueryMapping\ndotnet add package BigQueryMapping.Generators\n```\n\n**Apply attribute to your partial class**\n\nAny property with an accessible setter will be included in mapping.  You can specify a column name using a [ColumnAttribute](https://learn.microsoft.com/en-us/dotnet/api/system.componentmodel.dataannotations.schema.columnattribute).\n\n```csharp\nusing BigQueryMapping\n\n[BigQueryMapped]\npublic partial class MyRowDto\n{\n  public string SomeId { get; set; }\n  \n  [Column(\"some_RiDiCuLoUs_name\")]\n  public string SensibleName { get; set; }\n}\n```\n\nThe souce generator will implement `IBigQueryGenerated\u003cMyRowDto\u003e` which has a static method `FromBigQueryRow(BigQueryRow row)` that you can use to get your DTO out.\n\n```csharp\nvar rows = await _bigQuery.ExecuteQueryAsync(sql, parameters, cancellationToken, new());\n\nforeach (var row in rows)\n{\n    yield return MyRowDto.From(row);\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalomakes%2Fbigquerymapping","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhalomakes%2Fbigquerymapping","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhalomakes%2Fbigquerymapping/lists"}