語言

StoredProcedureParameterBuilder 類別

定義

提供簡單的參數配置 IStoredProcedure API。

[System.Runtime.CompilerServices.Nullable(0)]
public class StoredProcedureParameterBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder>
public class StoredProcedureParameterBuilder : Microsoft.EntityFrameworkCore.Infrastructure.IInfrastructure<Microsoft.EntityFrameworkCore.Metadata.Builders.PropertyBuilder>
[<System.Runtime.CompilerServices.Nullable(0)>]
type StoredProcedureParameterBuilder = class
    interface IInfrastructure<PropertyBuilder>
type StoredProcedureParameterBuilder = class
    interface IInfrastructure<PropertyBuilder>
Public Class StoredProcedureParameterBuilder
Implements IInfrastructure(Of PropertyBuilder)
繼承
StoredProcedureParameterBuilder
屬性
實作

備註

這個類別的實例會在使用 ModelBuilder API 時從方法回傳,且並非設計成直接在應用程式程式碼中建構。

建構函式

名稱 Description
StoredProcedureParameterBuilder(InternalStoredProcedureParameterBuilder, PropertyBuilder)

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

屬性

名稱 Description
Builder

這是一個內部 API,支援 Entity Framework Core 基礎架構,且不受公開 API 相同的相容性標準約束。 該內容可能會在任何新聞稿中未經通知而更改或移除。 你應該只在程式碼中直接使用它,並且要非常謹慎,並且要知道這樣做可能會導致更新到新的 Entity Framework Core 版本時應用程式失敗。

Metadata

正在設定的儲存程序參數。

方法

名稱 Description
HasAnnotation(String, Object)

在屬性上新增或更新特定儲存程序的註解。 如果已有標註中指定 annotation 該鍵的標註,其值會被更新。

HasName(String)

設定儲存程序參數的名稱。

IsInputOutput()

將儲存程序參數配置為輸入與輸出參數。

IsOutput()

將儲存程序參數配置為輸出參數。

明確介面實作

名稱 Description
IInfrastructure<PropertyBuilder>.Instance

提供簡單的參數配置 IStoredProcedure API。

擴充方法

名稱 Description
GetInfrastructure<T>(IInfrastructure<T>)

從一個被隱藏的屬性中取得價值 IInfrastructure<T>。

此方法通常由資料庫提供者(及其他擴充)使用。 它通常不被用於應用程式程式碼中。

適用於