5 instantiations of SqlGuid
System.Data.Common (5)
System\Data\Common\SQLConvert.cs (1)
585return new SqlGuid(XmlConvert.ToGuid((string)value));
System\Data\SQLTypes\SQLGuid.cs (4)
80return new SqlGuid(x); 109return new SqlGuid(s); 150return x.IsNull ? Null : new SqlGuid(x.Value); 156return x.IsNull ? Null : new SqlGuid(x.Value);
71 references to SqlGuid
netstandard (1)
netstandard.cs (1)
582[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlGuid))]
System.Data (1)
src\libraries\shims\System.Data\ref\System.Data.cs (1)
239[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Data.SqlTypes.SqlGuid))]
System.Data.Common (69)
System\Data\ColumnTypeConverter.cs (1)
49typeof(SqlGuid),
System\Data\Common\DataStorage.cs (1)
103typeof(SqlGuid),
System\Data\Common\SQLConvert.cs (5)
257public static SqlGuid ConvertToSqlGuid(object value) 262return SqlGuid.Null; 269StorageType.SqlGuid => (SqlGuid)value, 271_ => throw ExceptionBuilder.ConvertFailed(valueType, typeof(SqlGuid)), 673return XmlConvert.ToString(((SqlGuid)value).Value);
System\Data\Common\SQLTypes\SQLGuidStorage.cs (13)
16private SqlGuid[] _values = default!; // Late-initialized 19: base(column, typeof(SqlGuid), SqlGuid.Null, SqlGuid.Null, StorageType.SqlGuid) 48throw ExprException.Overflow(typeof(SqlGuid)); 61return _values[recordNo].CompareTo((SqlGuid)value); 102SqlGuid newValue = default; 112return ((SqlGuid)tmp); 120Debug.Assert((value.GetType() == typeof(SqlGuid)), "wrong input type"); 133return new SqlGuid[recordCount]; 138SqlGuid[] typedStore = (SqlGuid[])store; 145_values = (SqlGuid[])store;
System\Data\Filter\BinaryNode.cs (1)
237return ((SqlGuid)vLeft).CompareTo(vRight);
System\Data\SQLTypes\SQLBinary.cs (4)
194/// Converts a <see cref='System.Data.SqlTypes.SqlGuid'/> to a <see cref='SqlBinary'/>. 196public static explicit operator SqlBinary(SqlGuid x) // Alternative method: SqlGuid.ToSqlBinary 323public SqlGuid ToSqlGuid() 325return (SqlGuid)this;
System\Data\SQLTypes\SQLGuid.cs (39)
23public struct SqlGuid : INullable, IComparable, ISerializable, IXmlSerializable, IEquatable<SqlGuid> 78public static implicit operator SqlGuid(Guid x) 84public static explicit operator Guid(SqlGuid x) 104public static SqlGuid Parse(string s) 107return SqlGuid.Null; 113private static EComparison Compare(SqlGuid x, SqlGuid y) 148public static explicit operator SqlGuid(SqlString x) 154public static explicit operator SqlGuid(SqlBinary x) 160public static SqlBoolean operator ==(SqlGuid x, SqlGuid y) 166public static SqlBoolean operator !=(SqlGuid x, SqlGuid y) 171public static SqlBoolean operator <(SqlGuid x, SqlGuid y) 176public static SqlBoolean operator >(SqlGuid x, SqlGuid y) 181public static SqlBoolean operator <=(SqlGuid x, SqlGuid y) 190public static SqlBoolean operator >=(SqlGuid x, SqlGuid y) 204public static SqlBoolean Equals(SqlGuid x, SqlGuid y) 210public static SqlBoolean NotEquals(SqlGuid x, SqlGuid y) 216public static SqlBoolean LessThan(SqlGuid x, SqlGuid y) 222public static SqlBoolean GreaterThan(SqlGuid x, SqlGuid y) 228public static SqlBoolean LessThanOrEqual(SqlGuid x, SqlGuid y) 234public static SqlBoolean GreaterThanOrEqual(SqlGuid x, SqlGuid y) 260if (value is SqlGuid i) 264throw ADP.WrongType(value!.GetType(), typeof(SqlGuid)); 267public int CompareTo(SqlGuid value) 283value is SqlGuid other && Equals(other); 288public bool Equals(SqlGuid other) => _value == other._value; 327public static readonly SqlGuid Null;
System\Data\SQLTypes\SQLString.cs (3)
518public static explicit operator SqlString(SqlGuid x) 668public SqlGuid ToSqlGuid() 670return (SqlGuid)this;
System\Data\TypeLimiter.cs (1)
159typeof(SqlGuid),
System\Data\xmlsaver.cs (1)
271if (type == typeof(string) || type == typeof(SqlGuid) || type == typeof(SqlString) || type == typeof(SqlChars))