public void ToSqlString() { SqlByte TestByte12 = new SqlByte(12); SqlByte TestByte0 = new SqlByte(0); SqlByte TestByte228 = new SqlByte(228); Assert.AreEqual("12", TestByte12.ToSqlString().Value, "ToSqlString method 1" + Error); Assert.AreEqual("0", TestByte0.ToSqlString().Value, "ToSqlString method 2" + Error); Assert.AreEqual("228", TestByte228.ToSqlString().Value, "ToSqlString method 3" + Error); }
// SqlTypes. /// <summary> /// Converts the value of the specified SqlByte to its equivalent SqlString representation. /// </summary> /// <param name="value">An SqlByte.</param> /// <returns>The SqlString equivalent of the SqlByte.</returns> public static SqlString ToSqlString(SqlByte value) { return value.ToSqlString(); }
/// <summary> /// Converts the value of the specified SqlByte to its equivalent SqlChars representation. /// </summary> /// <param name="value">An SqlByte.</param> /// <returns>The equivalent SqlChars.</returns> public static SqlChars ToSqlChars(SqlByte value) { return (SqlChars)value.ToSqlString(); }
/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlString</c> value.</summary> public static SqlString ToSqlString(SqlByte p) { return p.ToSqlString(); }
/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlChars</c> value.</summary> public static SqlChars ToSqlChars(SqlByte p) { return (SqlChars)p.ToSqlString(); }
public void ToSqlString() { SqlByte TestByte12 = new SqlByte(12); SqlByte TestByte0 = new SqlByte(0); SqlByte TestByte228 = new SqlByte(228); Assert.Equal("12", TestByte12.ToSqlString().Value); Assert.Equal("0", TestByte0.ToSqlString().Value); Assert.Equal("228", TestByte228.ToSqlString().Value); }