ToSqlDecimal() публичный Метод

public ToSqlDecimal ( ) : SqlDecimal
Результат SqlDecimal
Пример #1
0
		public void ToSqlDecimal()
		{
			SqlByte TestByte12 = new SqlByte(12);
			SqlByte TestByte0 = new SqlByte(0);
			SqlByte TestByte228 = new SqlByte(228);

			Assert.AreEqual((decimal)12, TestByte12.ToSqlDecimal().Value, "ToSqlDecimal method 1" + Error);
			Assert.AreEqual((decimal)0, TestByte0.ToSqlDecimal().Value, "ToSqlDecimal method 2" + Error);
			Assert.AreEqual((decimal)228, TestByte228.ToSqlDecimal().Value, "ToSqlDecimal method 3" + Error);
			
		}
Пример #2
0
		/// <summary>Converts the value from <c>SqlByte</c> to an equivalent <c>SqlDecimal</c> value.</summary>
		public static SqlDecimal ToSqlDecimal(SqlByte    p) { return p.ToSqlDecimal();                                            }
Пример #3
0
 /// <summary>
 /// Converts the value of the specified SqlByte to its equivalent SqlDecimal representation.
 /// </summary>
 /// <param name="value">An SqlByte.</param>
 /// <returns>The equivalent SqlDecimal.</returns>
 public static SqlDecimal ToSqlDecimal(SqlByte value) { return value.ToSqlDecimal(); }
Пример #4
0
        public void ToSqlDecimal()
        {
            SqlByte TestByte12 = new SqlByte(12);
            SqlByte TestByte0 = new SqlByte(0);
            SqlByte TestByte228 = new SqlByte(228);

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