SqlServerDbFunctionsExtensions.DataLength 方法     
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 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 实例。
- 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 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 实例。
- 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 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 实例。
- 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 实例。
返回
输入值中的字节数。
注解
有关详细信息和示例,请参阅数据库函数和使用 EF Core 访问SQL Server和Azure SQL数据库。