SqlFunctions.DataLength Method
Returns the number of bytes used to represent any expression.
Assembly: EntityFramework.SqlServer (in EntityFramework.SqlServer.dll)
Name | Description | |
---|---|---|
![]() ![]() | DataLength(Byte[]) | Returns the number of bytes used to represent any expression. |
![]() ![]() | DataLength(Nullable<Boolean>) | 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. |
SqlFunctions.DataLength Method (Byte[])
Returns the number of bytes used to represent any expression.
[DbFunctionAttribute("SqlServer", "DATALENGTH")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> DataLength( byte[] arg )
Parameters
- arg
-
Type:
System.Byte[]
The value to be examined for length.
SqlFunctions.DataLength Method (Nullable<Boolean>)
Returns the number of bytes used to represent any expression.
[DbFunctionAttribute("SqlServer", "DATALENGTH")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> DataLength( Nullable<bool> arg )
Parameters
- arg
-
Type:
System.Nullable<Boolean>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<DateTime>)
Returns the number of bytes used to represent any expression.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] [DbFunctionAttribute("SqlServer", "DATALENGTH")] public static Nullable<int> DataLength( Nullable<DateTime> arg )
Parameters
- arg
-
Type:
System.Nullable<DateTime>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<DateTimeOffset>)
Returns the number of bytes used to represent any expression.
[DbFunctionAttribute("SqlServer", "DATALENGTH")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> DataLength( Nullable<DateTimeOffset> arg )
Parameters
- arg
-
Type:
System.Nullable<DateTimeOffset>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<Decimal>)
Returns the number of bytes used to represent any expression.
[DbFunctionAttribute("SqlServer", "DATALENGTH")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> DataLength( Nullable<decimal> arg )
Parameters
- arg
-
Type:
System.Nullable<Decimal>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<Double>)
Returns the number of bytes used to represent any expression.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] [DbFunctionAttribute("SqlServer", "DATALENGTH")] public static Nullable<int> DataLength( Nullable<double> arg )
Parameters
- arg
-
Type:
System.Nullable<Double>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<Guid>)
Returns the number of bytes used to represent any expression.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] [DbFunctionAttribute("SqlServer", "DATALENGTH")] public static Nullable<int> DataLength( Nullable<Guid> arg )
Parameters
- arg
-
Type:
System.Nullable<Guid>
The value to be examined for data length.
SqlFunctions.DataLength Method (Nullable<TimeSpan>)
Returns the number of bytes used to represent any expression.
[SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] [DbFunctionAttribute("SqlServer", "DATALENGTH")] public static Nullable<int> DataLength( Nullable<TimeSpan> arg )
Parameters
- arg
-
Type:
System.Nullable<TimeSpan>
The value to be examined for data length.
SqlFunctions.DataLength Method (String)
Returns the number of bytes used to represent any expression.
[DbFunctionAttribute("SqlServer", "DATALENGTH")] [SuppressMessageAttribute("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "arg")] public static Nullable<int> DataLength( string arg )
Parameters
- arg
-
Type:
System.String
The value to be examined for data length.