示例#1
0
        public virtual string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            switch (symbol)
            {
            case SqlSyntaxSymbol.Null:
                return("NULL");

            case SqlSyntaxSymbol.Like:
                return("LIKE");

            case SqlSyntaxSymbol.IdentifierQuote:
                return("\"");

            case SqlSyntaxSymbol.ParameterPrefix:
                return("@");

            case SqlSyntaxSymbol.StringQuote:
                return("'");

            case SqlSyntaxSymbol.StringQuoteAlt:
                return("\"");

            case SqlSyntaxSymbol.StringEscape:
                return("\\");

            default:
                return("");
            }
        }
示例#2
0
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            if (symbol == SqlSyntaxSymbol.AutoIncrement)
            {
                return "AUTOINCREMENT";
            }

            return base.GetSyntaxSymbolString(symbol);
        }
示例#3
0
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            if (symbol == SqlSyntaxSymbol.AutoIncrement)
            {
                return("AUTOINCREMENT");
            }

            return(base.GetSyntaxSymbolString(symbol));
        }
示例#4
0
 public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
 {
     switch (symbol)
     {
     case SqlSyntaxSymbol.AutoIncrement:
         return "IDENTITY";
     default:
         return base.GetSyntaxSymbolString(symbol);
     }
 }
		public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
		{
			switch (symbol)
			{
				case SqlSyntaxSymbol.Like:
					return "ILIKE";
				default:
					return base.GetSyntaxSymbolString(symbol);
			}
		}
示例#6
0
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            switch (symbol)
            {
            case SqlSyntaxSymbol.AutoIncrement:
                return("IDENTITY");

            default:
                return(base.GetSyntaxSymbolString(symbol));
            }
        }
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            switch (symbol)
            {
            case SqlSyntaxSymbol.Like:
                return("ILIKE");

            default:
                return(base.GetSyntaxSymbolString(symbol));
            }
        }
示例#8
0
		public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
		{
			switch (symbol)
			{
				case SqlSyntaxSymbol.IdentifierQuote:
					return "`";
				case SqlSyntaxSymbol.ParameterPrefix:
					return "?";
				case SqlSyntaxSymbol.AutoIncrement:
					return "AUTO_INCREMENT";
				default:
					return base.GetSyntaxSymbolString(symbol);
			}
		}
示例#9
0
		public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
		{
			switch (symbol)
			{
			case SqlSyntaxSymbol.AutoIncrement:
				return "AUTOINCREMENT";
			case SqlSyntaxSymbol.StringQuote:
				return "'";
			case SqlSyntaxSymbol.StringEscape:
				return "'";
			default:
				return base.GetSyntaxSymbolString(symbol);
			}
		}
示例#10
0
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            switch (symbol)
            {
            case SqlSyntaxSymbol.IdentifierQuote:
                return("`");

            case SqlSyntaxSymbol.ParameterPrefix:
                return("?");

            case SqlSyntaxSymbol.AutoIncrement:
                return("AUTO_INCREMENT");

            default:
                return(base.GetSyntaxSymbolString(symbol));
            }
        }
示例#11
0
        public override string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
        {
            switch (symbol)
            {
            case SqlSyntaxSymbol.AutoIncrement:
                return("AUTOINCREMENT");

            case SqlSyntaxSymbol.StringQuote:
                return("'");

            case SqlSyntaxSymbol.StringEscape:
                return("'");

            default:
                return(base.GetSyntaxSymbolString(symbol));
            }
        }
示例#12
0
 public virtual string GetSyntaxSymbolString(SqlSyntaxSymbol symbol)
 {
     switch (symbol)
     {
         case SqlSyntaxSymbol.Null:
             return "NULL";
         case SqlSyntaxSymbol.Like:
             return "LIKE";
         case SqlSyntaxSymbol.IdentifierQuote:
             return "\"";
         case SqlSyntaxSymbol.ParameterPrefix:
             return "@";
         case SqlSyntaxSymbol.StringQuote:
             return "'";
         default:
             return "";
     }
 }