private string parseColumn(QueryColumnActions Action, string Table, string Name)
        {
            string result = "";

            if (Action != QueryColumnActions.None)
            {
                switch (Action)
                {
                case QueryColumnActions.Count:
                    result = result + "COUNT";
                    break;
                }
                result = result + "(";
            }
            if (Table != null)
            {
                result = result + "`" + Table + "`.";
            }
            result = result + "`" + Name + "`";
            if (Action != QueryColumnActions.None)
            {
                result = result + ")";
            }
            return(result);
        }
Exemple #2
0
 public DatabaseColumn(string Table, string Name, string Alias, QueryColumnActions Action)
 {
     this.Table  = Table;
     this.Name   = Name;
     this.Alias  = Alias;
     this.Action = Action;
 }
 private string parseColumn(QueryColumnActions Action, string Table, string Name)
 {
     throw new NotImplementedException();
 }
Exemple #4
0
 public void SetAction(QueryColumnActions Action)
 {
     this.CanPerformAction = true;
     this.Action           = Action;
 }