public DatabaseParameter(string Field, string Value) { this.Field = string.Empty; this.Value = string.Empty; this.StringPattern = string.Empty; this.DataCompareStr = new string[] { " = ", " <> ", " > ", " < ", " >= ", " <= ", " IS ", " IS NOT ", " LIKE " }; this.DataLinkageStr = new string[] { " AND ", " OR " }; this.DataFormulaStr = new string[] { " GETDATE() ", " GETID() ", " NULL " }; this.IsUnicode = false; this.IsNullable = false; this.DataType = DBDataType.String; this.DataCompare = DBCompareType.Equal; this.DataLinkage = DBLinkage.AND; this.SortBy = false; this.ASC = true; this.Field = Field; this.Value = Value; }
public DatabaseParameter(string Field, DBDataFormula DataFormula) { this.Field = string.Empty; this.Value = string.Empty; this.StringPattern = string.Empty; this.DataCompareStr = new string[] { " = ", " <> ", " > ", " < ", " >= ", " <= ", " IS ", " IS NOT ", " LIKE " }; this.DataLinkageStr = new string[] { " AND ", " OR " }; this.DataFormulaStr = new string[] { " GETDATE() ", " GETID() ", " NULL " }; this.IsUnicode = false; this.IsNullable = false; this.DataType = DBDataType.String; this.DataCompare = DBCompareType.Equal; this.DataLinkage = DBLinkage.AND; this.SortBy = false; this.ASC = true; this.Field = Field; this.DataFormula = DataFormula; this.DataType = DBDataType.Formula; }