IConventionStoredProcedureParameterBuilder 介面
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
提供一個簡單的 API 來設定 IConventionStoredProcedureParameter.
public interface IConventionStoredProcedureParameterBuilder : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionAnnotatableBuilder
type IConventionStoredProcedureParameterBuilder = interface
interface IConventionAnnotatableBuilder
Public Interface IConventionStoredProcedureParameterBuilder
Implements IConventionAnnotatableBuilder
- 實作
備註
更多資訊與範例請參閱 模型建構慣例 。
屬性
| 名稱 | Description |
|---|---|
| Metadata |
正在建置的儲存程序參數元資料。 |
| ModelBuilder |
會得到模型製作者。 (繼承來源 IConventionAnnotatableBuilder) |
方法
| 名稱 | Description |
|---|---|
| CanRemoveAnnotation(String, Boolean) |
回傳一個值,指示是否能使用此組態來源移除帶有該名稱的註解。 (繼承來源 IConventionAnnotatableBuilder) |
| CanSetAnnotation(String, Object, Boolean) |
回傳一個值,指示是否能從此配置來源設定包含該名稱與值的註解。 (繼承來源 IConventionAnnotatableBuilder) |
| CanSetDirection(ParameterDirection, Boolean) |
回傳一個值,表示該方向是否能在對應的儲存程序參數上被設定。 |
| CanSetName(String, Boolean) |
回傳一個值,表示是否可以設定給定的參數名稱。 |
| HasAnnotation(String, Object, Boolean) |
設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。 |
| HasDirection(ParameterDirection, Boolean) |
設定儲存程序參數的方向。 |
| HasName(String, Boolean) |
設定參數名稱。 |
| HasNoAnnotation(String, Boolean) |
移除這個物件中帶有名字的註解。 |
| HasNonNullAnnotation(String, Object, Boolean) |
設定以名字儲存的註解。 若已有指定名稱的註解存在相同或更低 ConfigurationSource的標註,則會覆寫現有註解。
若指定值, |
| RemoveAnnotation(String, Boolean) |
已淘汰.
移除這個物件中帶有名字的註解。 (繼承來源 IConventionAnnotatableBuilder) |
| SetOrRemoveAnnotation(String, Object, Boolean) |
已淘汰.
設定或移除以名字儲存的註解。 (繼承來源 IConventionAnnotatableBuilder) |