当前位置: 首页>>代码示例>>C#>>正文


C# SqlByte.ToSqlInt64方法代码示例

本文整理汇总了C#中System.Data.SqlTypes.SqlByte.ToSqlInt64方法的典型用法代码示例。如果您正苦于以下问题:C# SqlByte.ToSqlInt64方法的具体用法?C# SqlByte.ToSqlInt64怎么用?C# SqlByte.ToSqlInt64使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Data.SqlTypes.SqlByte的用法示例。


在下文中一共展示了SqlByte.ToSqlInt64方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: ToSqlInt64

		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);

		}
开发者ID:Profit0004,项目名称:mono,代码行数:11,代码来源:SqlByteTest.cs

示例2: ToSqlInt64

		/// <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();                                                                    }
开发者ID:titolarz,项目名称:bltoolkit,代码行数:2,代码来源:Convert.generated.cs

示例3: ToSqlInt64

 /// <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(); }
开发者ID:mstaessen,项目名称:fluorinefx,代码行数:6,代码来源:Convert.cs

示例4: ToSqlInt64

        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);
        }
开发者ID:dotnet,项目名称:corefx,代码行数:10,代码来源:SqlByteTest.cs


注:本文中的System.Data.SqlTypes.SqlByte.ToSqlInt64方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。