22 namespace Deveel.Data.Sql.Cursors {
25 if (
String.IsNullOrEmpty(parameterName))
26 throw new ArgumentNullException(
"parameterName");
27 if (parameterType == null)
28 throw new ArgumentNullException(
"parameterType");
30 ParameterName = parameterName;
31 ParameterType = parameterType;
34 public string ParameterName {
get;
private set; }
36 public SqlType ParameterType {
get;
private set; }
38 public int Offset {
get; set; }
43 writer.Write(parameter.
Offset);
47 var paramName = reader.ReadString();
50 var offset = reader.ReadInt32();
static void SerializeTo(BinaryWriter writer, SqlType type)
A long string in the system.
static void Serialize(CursorParameter parameter, BinaryWriter writer)
static SqlType Deserialize(BinaryReader reader, ITypeResolver resolver)
static CursorParameter Deserialize(BinaryReader reader)
Defines the properties of a specific SQL Type and handles the values compatible.
CursorParameter(string parameterName, SqlType parameterType)