Inheritance: ISqlValue
Example #1
0
 protected string FormattedValue()
 {
     return(SqlValue.ValueString(FieldTemplate()));
 }
Example #2
0
 public virtual ISqlValue Clone()
 {
     SqlValue clone = new SqlValue();
     clone._Value = _Value;
     clone.SqlDataFormat = SqlDataFormat;
     return clone;
 }
Example #3
0
 /// <summary>
 /// Add a paremeter to the list, @ will be added to name automatically if not present
 /// </summary>
 /// <param name="name"></param>
 /// <param name="value"></param>
 public ISqlQuery AddParameter(string name, object value)
 {
     string fullName = name.Substring(0, 1) == "@" ? name : "@" + name;
     SqlValue val = new SqlValue(value);
     return AddParameter(new QueryParameter(name, val.Value));
 }