Exemplo n.º 1
0
        public static Condition NotEqualTo <T>(this PartialConditionalClause partialClause, T value)
        {
            var fullClause = (Condition)partialClause.PreviousClause;

            fullClause.Add(partialClause.Column, ComparisonOperator.NotEqualTo, value);
            return(fullClause);
        }
Exemplo n.º 2
0
        public static Condition GreaterThan <T>(this PartialConditionalClause partialClause, T value)
        {
            var fullClause = (Condition)partialClause.PreviousClause;

            fullClause.Add(partialClause.Column, ComparisonOperator.GreaterThan, value);
            return(fullClause);
        }
Exemplo n.º 3
0
        public static PartialConditionalClause NotWhere(this Condition conditionalClause, string column)
        {
            conditionalClause.Add(Separator.Not);
            var partial = new PartialConditionalClause(conditionalClause);

            partial.AddColumn(column);
            return(partial);
        }
Exemplo n.º 4
0
        public static PartialConditionalClause Where(this From fromClause, string column)
        {
            var conditionalClause = new Condition(fromClause);
            var partial           = new PartialConditionalClause(conditionalClause);

            partial.AddColumn(column);
            return(partial);
        }
Exemplo n.º 5
0
 internal Condition(PartialConditionalClause clause) : base(clause)
 {
     whereClauses = new List <WhereClause>();
 }
Exemplo n.º 6
0
 public static Condition NotLike(this PartialConditionalClause partialClause, string notLike)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 7
0
 public static Condition Between <T1, T2>(this PartialConditionalClause partialClause, T1 value1, T2 value2)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
 public static Condition NotIn <T>(this PartialConditionalClause partialClause, params T[] ins)
 {
     throw new NotImplementedException();
 }