TransactionHandler.BuildDatabaseInitializationScript 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
在衍生類別中實作時傳回指令碼,以準備資料庫供此交易處理常式使用。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")> _
Public MustOverride Function BuildDatabaseInitializationScript As String
'用途
Dim instance As TransactionHandler
Dim returnValue As String
returnValue = instance.BuildDatabaseInitializationScript()
[SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")]
public abstract string BuildDatabaseInitializationScript()
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1024:UsePropertiesWhereAppropriate")]
public:
virtual String^ BuildDatabaseInitializationScript() abstract
[<SuppressMessageAttribute("Microsoft.Design", "CA1024:UsePropertiesWhereAppropriate")>]
abstract BuildDatabaseInitializationScript : unit -> string
public abstract function BuildDatabaseInitializationScript() : String
傳回值
類型:System.String
指令碼,此指令碼可變更此交易處理常式的資料庫結構描述。