SqlServerDbFunctionsExtensions.DataLength 方法

定義

多載

DataLength(DbFunctions, String)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<TimeSpan>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Guid>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Double>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<DateTime>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<DateTimeOffset>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Boolean>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Byte[])

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, Nullable<Decimal>)

傳回用來代表任何運算式的位元組數目。

DataLength(DbFunctions, String)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
String

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<TimeSpan>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<TimeSpan>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<Guid>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<Guid>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<Double>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<Double>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<DateTime>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<DateTime>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<DateTimeOffset>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<DateTimeOffset>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<Boolean>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<Boolean>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Byte[])

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Byte[]

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於

DataLength(DbFunctions, Nullable<Decimal>)

傳回用來代表任何運算式的位元組數目。

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)

參數

_
DbFunctions

DbFunctions 執行個體。

arg
Nullable<Decimal>

要檢查其資料長度的值。

傳回

輸入值的位元組數目。

備註

如需詳細資訊和範例,請參閱使用 EF Core 存取SQL Server和Azure SQL資料庫

適用於