SqlServerDbFunctionsExtensions.DataLength Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
DataLength(DbFunctions, String) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<TimeSpan>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<Guid>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<Double>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<DateTime>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<DateTimeOffset>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<Boolean>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Byte[]) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, Nullable<Decimal>) |
Returns the number of bytes used to represent any expression. |
DataLength(DbFunctions, String)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, string arg);
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, string? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * string -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As String) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
- arg
- String
The value to be examined for data length.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<TimeSpan>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, TimeSpan? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<TimeSpan> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of TimeSpan)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<Guid>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, Guid? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<Guid> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of Guid)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<Double>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, double? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<double> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of Double)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<DateTime>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTime? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTime> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of DateTime)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<DateTimeOffset>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, DateTimeOffset? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<DateTimeOffset> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of DateTimeOffset)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
- arg
- Nullable<DateTimeOffset>
The value to be examined for data length.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<Boolean>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, bool? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<bool> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of Boolean)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Byte[])
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, byte[] arg);
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, byte[]? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * byte[] -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Byte()) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
- arg
- Byte[]
The value to be examined for data length.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
DataLength(DbFunctions, Nullable<Decimal>)
Returns the number of bytes used to represent any expression.
public static int? DataLength (this Microsoft.EntityFrameworkCore.DbFunctions _, decimal? arg);
static member DataLength : Microsoft.EntityFrameworkCore.DbFunctions * Nullable<decimal> -> Nullable<int>
<Extension()>
Public Function DataLength (_ As DbFunctions, arg As Nullable(Of Decimal)) As Nullable(Of Integer)
Parameters
The DbFunctions instance.
Returns
The number of bytes in the input value.
Remarks
See Database functions, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.