23 namespace Deveel.Data.Sql {
28 : this(sqlType, null) {
32 : this(
Marker, sqlType, value) {
36 : this(name, sqlType, null) {
41 throw new ArgumentNullException(
"sqlType");
43 if (
String.IsNullOrEmpty(name))
44 throw new ArgumentNullException(
"name");
46 if (!
String.Equals(name,
Marker, StringComparison.Ordinal) &&
47 name[0] != NamePrefix)
48 throw new ArgumentException(
String.Format(
"The parameter name '{0}' is invalid: must be '{1}' or starting with '{2}'", name,
Marker, NamePrefix));
63 public const char NamePrefix =
':';
66 public string Name {
get;
private set; }
77 data.
SetValue(
"Direction", Direction);
void GetData(SerializeData data)
A long string in the system.
void SetValue(string key, Type type, object value)
Defines the contract for a valid SQL Object
QueryParameter(SqlType sqlType, ISqlObject value)
Defines the properties of a specific SQL Type and handles the values compatible.
QueryParameter(string name, SqlType sqlType)
QueryParameter(SqlType sqlType)
object GetValue(string key)
QueryParameter(string name, SqlType sqlType, ISqlObject value)
QueryParameter(ObjectData data)
Parameters that are replaced on a zero-based index of the input parameters of a query. These parameters are not identified by a unique name, but by a ? character that acts as a place-holder for an input parameter.
string GetString(string key)