Esempio n. 1
0
        public Where <TDto, TProperty, TTable> AndWhere <TProperty>(string columnName)
        {
            var andWhere = new Where <TDto, TProperty, TTable>(TableImpl, Parameters, columnName);

            AndConditions.Add(andWhere);
            return(andWhere);
        }
Esempio n. 2
0
 public void WhereAndCondition(string WhereClauseContent, int?IntParameter)
 {
     if (IntParameter == null)
     {
         return;
     }
     AndConditions.Add(" " + WhereClauseContent + " ");
 }
Esempio n. 3
0
 public void WhereAndCondition(string WhereClauseContent, Guid?GuidParameter)
 {
     if (GuidParameter == Guid.Empty || GuidParameter == null)
     {
         return;
     }
     AndConditions.Add(" " + WhereClauseContent + " ");
 }
Esempio n. 4
0
 public void WhereAndCondition(string WhereClauseContent, string StringParameter)
 {
     if (string.IsNullOrEmpty(StringParameter))
     {
         return;
     }
     AndConditions.Add(" " + WhereClauseContent + " ");
 }
Esempio n. 5
0
 public void WhereAndCondition(string WhereClauseContent, double?DoubleParameter)
 {
     if (DoubleParameter == null)
     {
         return;
     }
     AndConditions.Add(" " + WhereClauseContent + " ");
 }
Esempio n. 6
0
        public Where <TDto, TProperty, TTable> AndWhere <TProperty>(Expression <Func <TDto, TProperty> > columnExpression, string colPrefix = null)
        {
            var columnName = SpryExpression.GetColumnName(columnExpression);

            if (!string.IsNullOrWhiteSpace(colPrefix))
            {
                columnName = colPrefix + "." + columnName;
            }
            var andWhere = new Where <TDto, TProperty, TTable>(TableImpl, Parameters, columnName);

            AndConditions.Add(andWhere);
            return(andWhere);
        }
Esempio n. 7
0
 public void WhereAndCondition(string WhereClauseContent)
 {
     AndConditions.Add(" " + WhereClauseContent + " ");
 }