⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 joinclause.cs

📁 基于LINQ和.NET 3.5 的数据库源码
💻 CS
字号:
using Lephone.Util.Text;
using Lephone.Data.SqlEntry;
using Lephone.Data.Definition;

namespace Lephone.Data.Builder.Clause
{
    public class JoinClause : IClause
    {
        public string Key1;
        public string Key2;
        public CompareOpration comp;
        public JoinMode mode;

        public JoinClause(string Key1, string Key2, CompareOpration comp, JoinMode mode)
        {
            this.Key1 = Key1;
            this.Key2 = Key2;
            this.comp = comp;
            this.mode = mode;
        }

        public string ToSqlText(DataParamterCollection dpc, Dialect.DbDialect dd)
        {
            return string.Format("{0} {2} {1}",
                dd.QuoteForColumnName(Key1),
                dd.QuoteForColumnName(Key2),
                StringHelper.EnumToString(comp));
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -