ToSqlInt64() public method

public ToSqlInt64 ( ) : SqlInt64
return SqlInt64
Beispiel #1
0
		public void ToSqlInt64()
		{
			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);

			Assert.AreEqual((long)12, TestByte12.ToSqlInt64().Value, "ToSqInt64 method " + Error);
			Assert.AreEqual((long)0, TestByte0.ToSqlInt64().Value, "ToSqlInt64 method 2" + Error);
			Assert.AreEqual((long)228, TestByte228.ToSqlInt64().Value, "ToSqlInt64 method 3" + Error);

		}
		/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlInt64</c> value.</summary>
		public static SqlInt64 ToSqlInt64(SqlByte         p) { return p.ToSqlInt64();                                                                    }
Beispiel #3
0
 /// <summary>
 /// Converts the value of the specified SqlByte to its equivalent SqlInt64 representation.
 /// </summary>
 /// <param name="value">An SqlByte.</param>
 /// <returns>The equivalent SqlInt64.</returns>
 public static SqlInt64 ToSqlInt64(SqlByte value) { return value.ToSqlInt64(); }
Beispiel #4
0
        public void ToSqlInt64()
        {
            SqlByte TestByte12 = new SqlByte(12);
            SqlByte TestByte0 = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

            Assert.Equal(12, TestByte12.ToSqlInt64().Value);
            Assert.Equal(0, TestByte0.ToSqlInt64().Value);
            Assert.Equal(228, TestByte228.ToSqlInt64().Value);
        }