Exemplo n.º 1
0
 public ConditionSingle(string fieldName, SqlHelper.Comparison comparison, string param, bool isValue = true)
 {
     this._FieldName  = fieldName;
     this._Comparison = comparison;
     this._Param      = param;
     if (_Param == null)
     {
         _Param  = "@" + fieldName.Split('.').LastOrDefault();
         isValue = false;
     }
     if (comparison == SqlHelper.Comparison.IsNull)
     {
         _Param  = "";
         isValue = false;
     }
     this._isValue = isValue;
 }
Exemplo n.º 2
0
 public Condition AddOrCondition(string _FieldName, SqlHelper.Comparison _Comparison, string _Param = null, bool isValue = true)
 {
     return(AddCondition(Connector.Or, new ConditionSingle(_FieldName, _Comparison, _Param, isValue)));
 }