DbFunctionAttribute 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將靜態 CLR 方法映射到資料庫函式,使 CLR 方法可用於 LINQ 查詢。 慣例上,資料庫函式名稱使用 .NET 方法名稱及預設結構。
[System.AttributeUsage(System.AttributeTargets.Method)]
[System.Runtime.CompilerServices.Nullable(0)]
public class DbFunctionAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Method)]
public class DbFunctionAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type DbFunctionAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Method)>]
type DbFunctionAttribute = class
inherit Attribute
Public Class DbFunctionAttribute
Inherits Attribute
- 繼承
-
DbFunctionAttribute
- 屬性
備註
更多資訊與範例請參見 資料庫函數 。
建構函式
| 名稱 | Description |
|---|---|
| DbFunctionAttribute() |
初始化 DbFunctionAttribute 類別的新執行個體。 |
| DbFunctionAttribute(String, String) |
初始化 DbFunctionAttribute 類別的新執行個體。 |
屬性
| 名稱 | Description |
|---|---|
| FunctionName |
資料庫中函式的名稱。 |
| IsBuiltIn |
該值表示資料庫函式是否內建。 |
| IsNullable |
該值表示資料庫函式是否能回傳 null 結果。 |
| IsNullableHasValue |
檢查是否 IsNullable 已被明確設定為某個值。 |
| Name |
資料庫中函式的名稱。 |
| Schema |
資料庫中函式的結構。 |