SqlServerDbFunctionsExtensions.DataLength Method

Definition

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

_
DbFunctions

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<TimeSpan>

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<Guid>

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<Double>

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<DateTime>

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

_
DbFunctions

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<Boolean>

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, 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

_
DbFunctions

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

_
DbFunctions

The DbFunctions instance.

arg
Nullable<Decimal>

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