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