From 93fe2eec289440ecd8708959872e39b6a8f6d6b2 Mon Sep 17 00:00:00 2001 From: KirillKurdyukov Date: Mon, 9 Jun 2025 13:33:21 +0300 Subject: [PATCH] YDB: new FeatureSupport(true) --- Dapper/FeatureSupport.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dapper/FeatureSupport.cs b/Dapper/FeatureSupport.cs index 4d7d77e2e..425aa04c8 100644 --- a/Dapper/FeatureSupport.cs +++ b/Dapper/FeatureSupport.cs @@ -11,7 +11,8 @@ internal class FeatureSupport private static readonly FeatureSupport Default = new FeatureSupport(false), Postgres = new FeatureSupport(true), - ClickHouse = new FeatureSupport(true); + ClickHouse = new FeatureSupport(true), + YDB = new FeatureSupport(true); /// /// Gets the feature set based on the passed connection @@ -22,6 +23,7 @@ public static FeatureSupport Get(IDbConnection? connection) string? name = connection?.GetType().Name; if (string.Equals(name, "npgsqlconnection", StringComparison.OrdinalIgnoreCase)) return Postgres; if (string.Equals(name, "clickhouseconnection", StringComparison.OrdinalIgnoreCase)) return ClickHouse; + if (string.Equals(name, "ydbconnection", StringComparison.OrdinalIgnoreCase)) return YDB; return Default; }