Esempio n. 1
0
 /// <summary>
 ///     Returns a BINARY parameter value.
 /// </summary>
 /// <param name="value">The parameter value.</param>
 /// <param name="size">The parameter size.</param>
 /// <returns>A <see cref="IDbParameterValue" />.</returns>
 public IDbParameterValue Binary(byte[] value, TSqlBinarySize size)
 {
     if (value == null)
     {
         return(new TSqlBinaryNullValue(size));
     }
     return(new TSqlBinaryValue(value, size));
 }
Esempio n. 2
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="TSqlBinaryValue" /> class.
 /// </summary>
 /// <param name="value">The parameter value.</param>
 /// <param name="size">The parameter size.</param>
 /// <exception cref="System.ArgumentNullException">Thrown when the <paramref name="value" /> is <c>null</c>.</exception>
 public TSqlBinaryValue(byte[] value, TSqlBinarySize size)
 {
     if (value == null)
     {
         throw new ArgumentNullException("value");
     }
     _value = value;
     _size  = size;
 }
 /// <summary>
 ///     Initializes a new instance of the <see cref="TSqlBinaryNullValue" /> class.
 /// </summary>
 /// <param name="size">The size.</param>
 public TSqlBinaryNullValue(TSqlBinarySize size)
 {
     _size = size;
 }