IMutableDbFunction 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
代表模型中的關聯式資料庫函式,形式可於模型建置過程中進行變異。
public interface IMutableDbFunction : Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable, Microsoft.EntityFrameworkCore.Metadata.IReadOnlyDbFunction
public interface IMutableDbFunction : Microsoft.EntityFrameworkCore.Metadata.IDbFunction
public interface IMutableDbFunction : Microsoft.EntityFrameworkCore.Metadata.IDbFunction, Microsoft.EntityFrameworkCore.Metadata.IMutableAnnotatable
type IMutableDbFunction = interface
interface IReadOnlyDbFunction
interface IReadOnlyAnnotatable
interface IMutableAnnotatable
type IMutableDbFunction = interface
interface IDbFunction
type IMutableDbFunction = interface
interface IMutableAnnotatable
interface IAnnotatable
interface IDbFunction
Public Interface IMutableDbFunction
Implements IMutableAnnotatable, IReadOnlyDbFunction
Public Interface IMutableDbFunction
Implements IDbFunction
Public Interface IMutableDbFunction
Implements IDbFunction, IMutableAnnotatable
- 實作
備註
更多資訊與範例請參見 資料庫函數 。
屬性
| 名稱 | Description |
|---|---|
| FunctionName |
資料庫中函式的名稱。 |
| IsAggregate |
取得表示該函數是否為聚合函數的值。 (繼承來源 IDbFunction) |
| IsBuiltIn |
取得或設定顯示資料庫函式是否內建的值。 |
| IsNullable |
取得或設定顯示資料庫函式是否能回傳 null 值的值。 |
| IsScalar |
得到表示此函數是否回傳純量值的值。 (繼承來源 IDbFunction) |
| Item[String] |
取得帶有名稱的值註解,若不存在則回 |
| MethodInfo |
取得 CLR 方法,該方法會映射到資料庫中的函式。 (繼承來源 IDbFunction) |
| Model |
得到定義此函數的模型。 |
| ModelName |
取得模型中函數的名稱。 (繼承來源 IDbFunction) |
| Name |
取得或設定資料庫中函式名稱。 |
| Parameters |
取得此函數的參數 |
| ReturnType |
拿回的CLR類型。 (繼承來源 IDbFunction) |
| Schema |
取得或設定資料庫中函式的結構。 |
| StoreFunction |
得到相關的 IStoreFunction。 (繼承來源 IDbFunction) |
| StoreType |
取得或設定資料庫中函式的儲存類型。 |
| Translation |
取得或設定轉換回調,以執行方法呼叫的自訂轉譯為 SQL 表達式片段。 |
| TypeMapping |
取得或設定函式在資料庫中的型別映射。 |
方法
擴充方法
| 名稱 | Description |
|---|---|
| AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>) |
為物件添加註解。 |
| AnnotationsToDebugString(IAnnotatable, Int32) |
取得物件上所有宣告註解的除錯字串。 |
| GetAnnotation(IAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| GetAnnotation(IMutableAnnotatable, String) |
取得帶有名稱的註解,若不存在則拋出。 |
| SetOrRemoveAnnotation(IMutableAnnotatable, String, Object) |
設定以名字儲存的註解。 若已有指定名稱的註解存在,則會覆寫現有註解。 若 |
| ToDebugString(IDbFunction, MetadataDebugStringOptions, Int32) |
建立給定元資料的可讀表示法。 警告:請勿依賴回傳字串的格式。 它僅設計用於除錯,且可能在不同版本間任意變動。 |