Udostępnij za pośrednictwem


System.Object Methods (LINQ to SQL)

LINQ to SQL supports the following Object methods.

Object.Equals(Object)

Object.Equals(Object, Object)

Object.ToString()

 

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, and TIMESTAMP.

 

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.

See Also

Other Resources

Data Types and Functions (LINQ to SQL)