ToSqlString() public method

public ToSqlString ( ) : SqlString
return SqlString
Beispiel #1
0
		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);

		}
Beispiel #2
0
        // 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(); }
Beispiel #3
0
 /// <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();                                                                  }
Beispiel #5
0
		/// <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(); }
Beispiel #6
0
        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);
        }