From ca6b714e703884f29ba7cabaf0dada47f0c7884e Mon Sep 17 00:00:00 2001 From: sunkaixuan <610262374@qq.com> Date: Mon, 1 Apr 2024 18:06:09 +0800 Subject: [PATCH] Update Odbc --- .../GBase/SqlBuilder/GBaseBuilder.cs | 4 ++-- Src/Asp.NetCore2/SqlSugar.OdbcCore/OdbcConfig.cs | 12 ++++++++++++ 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 Src/Asp.NetCore2/SqlSugar.OdbcCore/OdbcConfig.cs diff --git a/Src/Asp.NetCore2/SqlSugar.OdbcCore/GBase/SqlBuilder/GBaseBuilder.cs b/Src/Asp.NetCore2/SqlSugar.OdbcCore/GBase/SqlBuilder/GBaseBuilder.cs index 89cf1d7dc..7073caad8 100644 --- a/Src/Asp.NetCore2/SqlSugar.OdbcCore/GBase/SqlBuilder/GBaseBuilder.cs +++ b/Src/Asp.NetCore2/SqlSugar.OdbcCore/GBase/SqlBuilder/GBaseBuilder.cs @@ -9,8 +9,8 @@ namespace SqlSugar.Odbc { public class OdbcBuilder : SqlBuilderProvider { - public override string SqlTranslationLeft { get { return ""; } } - public override string SqlTranslationRight { get { return ""; } } + public override string SqlTranslationLeft { get { return OdbcConfig.SqlTranslationLeft; } } + public override string SqlTranslationRight { get { return OdbcConfig.SqlTranslationRight; } } public override string GetNoTranslationColumnName(string name) { return name; diff --git a/Src/Asp.NetCore2/SqlSugar.OdbcCore/OdbcConfig.cs b/Src/Asp.NetCore2/SqlSugar.OdbcCore/OdbcConfig.cs new file mode 100644 index 000000000..4f384e9de --- /dev/null +++ b/Src/Asp.NetCore2/SqlSugar.OdbcCore/OdbcConfig.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace SqlSugar.Odbc +{ + public class OdbcConfig + { + public static string SqlTranslationLeft =""; + public static string SqlTranslationRight=""; + } +}