SqlFunctions.DataLength Method
.NET Framework 4.5
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.
| Name | Description | |
|---|---|---|
|
DataLength(Nullable<Boolean>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Byte[]) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<DateTime>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<DateTimeOffset>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<Decimal>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<Double>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<Guid>) | Returns the number of bytes used to represent any expression. |
|
DataLength(Nullable<TimeSpan>) | Returns the number of bytes used to represent any expression. |
|
DataLength(String) | Returns the number of bytes used to represent any expression. |
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).