コード例 #1
0
ファイル: MsSqlGenerator.cs プロジェクト: dannyswat/EasyDb
        public void Visit(CaseWhenField component)
        {
            sql.Append("(CASE");
            foreach (var conditionValue in component.Conditions)
            {
                sql.Append(" WHEN ");
                conditionValue.Key.Accept(this);
                sql.Append(" THEN ");
                conditionValue.Value.Accept(this);
            }

            if (component.Else != null)
            {
                sql.Append(" ELSE ");
                component.Else.Accept(this);
            }
            sql.Append(" END)");
        }
コード例 #2
0
ファイル: SqliteGenerator.cs プロジェクト: dannyswat/EasyDb
 public void Visit(CaseWhenField component)
 {
     throw new NotImplementedException();
 }