This topic has not yet been rated - Rate this topic

SqlFunctions.DataLength Method

Returns the number of bytes used to represent any expression.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method Static member DataLength(Nullable<Boolean>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Byte[]) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<DateTime>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<DateTimeOffset>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<Decimal>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<Double>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<Guid>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(Nullable<TimeSpan>) Returns the number of bytes used to represent any expression.
Public method Static member DataLength(String) Returns the number of bytes used to represent any expression.
Top

You cannot call this function directly. This function can only appear within a LINQ to Entities query.

This function is translated to a corresponding function in the database. For information about the corresponding SQL Server function, see DATALENGTH (Transact-SQL).

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.