using System; using System.Collections.Generic; using System.Text; using System.Data.Common; using System.Data; namespace ScrewTurn.Wiki.Plugins.SqlCommon { /// /// Represents a generic database parameter. /// public class Parameter { private ParameterType type; private string name; private object value; /// /// Initializes a new instance of the class. /// /// The type of the parameter. /// The name of the parameter. /// The value of the parameter. public Parameter(ParameterType type, string name, object value) { this.type = type; this.name = name; this.value = value; } /// /// Gets the type of the parameter. /// public ParameterType Type { get { return type; } } /// /// Gets the name of the parameter. /// public string Name { get { return name; } } /// /// Gets or sets the value of the parameter. /// public object Value { get { return value; } set { this.value = value; } } } /// /// Lists parameter types. /// public enum ParameterType { /// /// An Int16. /// Int16, /// /// An Int32. /// Int32, /// /// An Int64. /// Int64, /// /// A unicode string. /// String, /// /// A unicode character. /// Char, /// /// A date/time. /// DateTime, /// /// A boolean. /// Boolean, /// /// A byte. /// Byte, /// /// An array of bytes. /// ByteArray } }