System.Object Methods
LINQ to SQL supports the following Object methods:
LINQ to SQL does not support the following Object methods:
- Object.GetHashCode()
- Object.ReferenceEquals(Object, Object)
- Object.MemberwiseClone()
- Object.GetType()
- Object.ToString() for binary types such as
BINARY
,VARBINARY
,IMAGE
, andTIMESTAMP
.
Differences from .NET
The output of Object.ToString() for double uses SQL CONVERT
(NVARCHAR(30), @x, 2) on SQL. SQL always uses 16 digits and scientific notation in this case (for example, "0.000000000000000e+000" for 0). As a result, Object.ToString() conversion does not produce the same string as Convert.ToString in the .NET Framework.