示例#1
0
        public Where <TDto, TProperty, TTable> OrWhere <TProperty>(string columnName)
        {
            var orWhere = new Where <TDto, TProperty, TTable>(TableImpl, Parameters, columnName);

            OrConditions.Add(orWhere);
            return(orWhere);
        }
示例#2
0
 public void WhereOrCondition(string WhereClauseContent, Guid?GuidParameter)
 {
     if (GuidParameter == Guid.Empty || GuidParameter == null)
     {
         return;
     }
     OrConditions.Add(" " + WhereClauseContent + " ");
 }
示例#3
0
 public void WhereOrCondition(string WhereClauseContent, string StringParameter)
 {
     if (string.IsNullOrEmpty(StringParameter))
     {
         return;
     }
     OrConditions.Add(" " + WhereClauseContent + " ");
 }
示例#4
0
 public void WhereOrCondition(string WhereClauseContent, double?DoubleParameter)
 {
     if (DoubleParameter == null)
     {
         return;
     }
     OrConditions.Add(" " + WhereClauseContent + " ");
 }
示例#5
0
 public void WhereOrCondition(string WhereClauseContent, int?IntParameter)
 {
     if (IntParameter == null)
     {
         return;
     }
     OrConditions.Add(" " + WhereClauseContent + " ");
 }
示例#6
0
        public Where <TDto, TProperty, TTable> OrWhere <TProperty>(Expression <Func <TDto, TProperty> > columnExpression, string colPrefix = null)
        {
            var columnName = SpryExpression.GetColumnName(columnExpression);

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

            OrConditions.Add(orWhere);
            return(orWhere);
        }
示例#7
0
 public void WhereOrCondition(string WhereClauseContent)
 {
     OrConditions.Add(" " + WhereClauseContent + " ");
 }