Export (0) Print
Expand All

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).

Community Additions

ADD
Show:
© 2014 Microsoft