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


C# SqlBinary.ToSqlGuid方法代码示例

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


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

示例1: ToNullableGuid

 /// <summary>
 /// Converts the value of the specified SqlBinary to its equivalent nullable Guid.
 /// </summary>
 /// <param name="value">An SqlBinary.</param>
 /// <returns>The equivalent nullable Guid.</returns>
 public static Guid? ToNullableGuid(SqlBinary value) { return value.IsNull ? null : (Guid?)value.ToSqlGuid().Value; }
开发者ID:mstaessen,项目名称:fluorinefx,代码行数:6,代码来源:Convert.cs

示例2: ToSqlGuid

        // SqlTypes.

        /// <summary>
        /// Converts the value of the specified SqlBinary to its equivalent SqlGuid representation.
        /// </summary>
        /// <param name="value">An SqlBinary.</param>
        /// <returns>The equivalent SqlGuid.</returns>
        public static SqlGuid ToSqlGuid(SqlBinary value) { return value.ToSqlGuid(); }
开发者ID:mstaessen,项目名称:fluorinefx,代码行数:8,代码来源:Convert.cs

示例3: ToGuid

 /// <summary>
 /// Converts the value of the specified SqlBinary to its equivalent Guid.
 /// </summary>
 /// <param name="value">An SqlBinary.</param>
 /// <returns>The equivalent Guid.</returns>
 public static Guid ToGuid(SqlBinary value) { return value.IsNull ? Guid.Empty : value.ToSqlGuid().Value; }
开发者ID:mstaessen,项目名称:fluorinefx,代码行数:6,代码来源:Convert.cs

示例4: ToNullableGuid

		// Sql Types
		//
		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>Guid?</c> value.</summary>
		public static Guid? ToNullableGuid(SqlBinary p) { return p.IsNull  ? (Guid?)null : p.ToSqlGuid().Value;   }
开发者ID:titolarz,项目名称:bltoolkit,代码行数:4,代码来源:Convert.generated.cs

示例5: ToSqlGuid

		// Sql Types
		//
		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>SqlGuid</c> value.</summary>
		public static SqlGuid ToSqlGuid(SqlBinary p) { return p.IsNull  ? SqlGuid.Null : p.ToSqlGuid().Value;   }
开发者ID:titolarz,项目名称:bltoolkit,代码行数:4,代码来源:Convert.generated.cs

示例6: ToGuid

		// Sql Types
		//
		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>Guid</c> value.</summary>
		public static Guid ToGuid(SqlBinary p) { return p.IsNull  ? Configuration.NullableValues.Guid : p.ToSqlGuid().Value;   }
开发者ID:titolarz,项目名称:bltoolkit,代码行数:4,代码来源:Convert.generated.cs

示例7: ToSqlGuid

		// SqlTypes
		// 
		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>SqlGuid</c> value.</summary>
		public static SqlGuid ToSqlGuid(SqlBinary p)       { return p.ToSqlGuid(); }
开发者ID:epdumitru,项目名称:mysqlib,代码行数:4,代码来源:Convert.cs

示例8: ToGuid

		/// <summary>Converts the value from <c>SqlBinary</c> to an equivalent <c>Guid</c> value.</summary>
		public static Guid ToGuid(SqlBinary p)       { return p.IsNull? Guid.Empty: p.ToSqlGuid().Value; }
开发者ID:epdumitru,项目名称:mysqlib,代码行数:2,代码来源:Convert.cs

示例9: ToSqlGuid

		public void ToSqlGuid()
		{
                        SqlBinary TestBinary = new SqlBinary (new byte [16]);
                        SqlGuid TestGuid = TestBinary.ToSqlGuid ();
                        Assert.IsTrue (!TestGuid.IsNull, "#I01");
		}
开发者ID:tohosnet,项目名称:Mono.Data.Sqlite,代码行数:6,代码来源:SqlBinaryTest.cs

示例10: ToSqlGuid

		public void ToSqlGuid()
		{
                        SqlBinary TestBinary = new SqlBinary (new byte [16]);
                        SqlGuid TestGuid = TestBinary.ToSqlGuid ();
                        Assert ("#I01", !TestGuid.IsNull);
		}
开发者ID:jjenki11,项目名称:blaze-chem-rendering,代码行数:6,代码来源:SqlBinaryTest.cs


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