NpgsqlDataSourceBuilder MapEnum<T> doesn't take a schema

オープン
#3,631 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
csharp, postgresql
領域
backend, databases

調査の方向性

Start by comparing NpgsqlDataSourceBuilder.MapEnum<T> with the NpgsqlDbConnectionOptionsBuild.MapEnum<T> overload mentioned in the issue. Check the existing tests for both entry points and determine how a schema parameter should interact with the default name mapper. Done means the data-source builder can accept a schema name and tests verify the resulting mapping.

索引モデルが issue の本文から書いたものです。

説明

NpgsqlDbConnectionOptionsBuild.MapEnum<T> accepts a schemaName parameter. However, now that I'm trying to switch to using NpgsqlDataSourceBuilder.MapEnum<T> I see that it does not. It just takes a full name. Can we get a schema param on that? With the newer method, I end up having to do this:

        .MapEnum<SoftwareComponentKitBuildStatus>("one_bom.software_component_kit_build_status")

instead of the simpler version that let's the default name mapper run.

        .MapEnum<SoftwareComponentKitBuildStatus>(schemaName: "one_bom")
主要言語
C#
スター
1.8k
フォーク
268
平均マージ
2時間 35分
マージ済み PR(30日)
136

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

npgsql/efcore.pg のほかの issue

npgsql/efcore.pg の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。