SqlFunctions.DataLength Method

.NET Framework (current version)
 

Returns the number of bytes used to represent any expression.

Namespace:   System.Data.Objects.SqlClient
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticDataLength(Byte[])

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Boolean>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<DateTime>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<DateTimeOffset>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Decimal>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Double>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<Guid>)

Returns the number of bytes used to represent any expression.

System_CAPS_pubmethodSystem_CAPS_staticDataLength(Nullable<TimeSpan>)

Returns the number of bytes used to represent any expression.

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

Return to top
Show: