ConventionModificationStoredProceduresConfiguration.Insert 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
設定預存程序用以插入實體。
命名空間: System.Data.Entity.ModelConfiguration.Configuration
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function Insert ( _
modificationStoredProcedureConfigurationAction As Action(Of ConventionInsertModificationStoredProcedureConfiguration) _
) As ConventionModificationStoredProceduresConfiguration
'用途
Dim instance As ConventionModificationStoredProceduresConfiguration
Dim modificationStoredProcedureConfigurationAction As Action(Of ConventionInsertModificationStoredProcedureConfiguration)
Dim returnValue As ConventionModificationStoredProceduresConfiguration
returnValue = instance.Insert(modificationStoredProcedureConfigurationAction)
public ConventionModificationStoredProceduresConfiguration Insert(
Action<ConventionInsertModificationStoredProcedureConfiguration> modificationStoredProcedureConfigurationAction
)
public:
ConventionModificationStoredProceduresConfiguration^ Insert(
Action<ConventionInsertModificationStoredProcedureConfiguration^>^ modificationStoredProcedureConfigurationAction
)
member Insert :
modificationStoredProcedureConfigurationAction:Action<ConventionInsertModificationStoredProcedureConfiguration> -> ConventionModificationStoredProceduresConfiguration
public function Insert(
modificationStoredProcedureConfigurationAction : Action<ConventionInsertModificationStoredProcedureConfiguration>
) : ConventionModificationStoredProceduresConfiguration
參數
- modificationStoredProcedureConfigurationAction
類型:System.Action<ConventionInsertModificationStoredProcedureConfiguration>
執行預存程序組態的 Lambda 運算式。
傳回值
類型:System.Data.Entity.ModelConfiguration.Configuration.ConventionModificationStoredProceduresConfiguration
相同的組態執行個體,以便鏈結多個呼叫。