Конструктор DatabaseLogFormatter (DbContext, Action<String>)
[This page is specific to the Entity Framework version 6.0 Beta. The latest version is available as the 'Entity Framework' NuGet package. For more information, see Entity Framework Releases and Versioning.]
Пространство имен: System.Data.Entity.Infrastructure.Interception
Сборка: EntityFramework (в EntityFramework.dll)
Синтаксис
'Декларация
Public Sub New ( _
context As DbContext, _
writeAction As Action(Of String) _
)
'Применение
Dim context As DbContext
Dim writeAction As Action(Of String)
Dim instance As New DatabaseLogFormatter(context, _
writeAction)
public DatabaseLogFormatter(
DbContext context,
Action<string> writeAction
)
public:
DatabaseLogFormatter(
DbContext^ context,
Action<String^>^ writeAction
)
new :
context:DbContext *
writeAction:Action<string> -> DatabaseLogFormatter
public function DatabaseLogFormatter(
context : DbContext,
writeAction : Action<String>
)
Параметры
- context
Тип: System.Data.Entity.DbContext
- writeAction
Тип: System.Action<String>
См. также
Справочник
Перегрузка DatabaseLogFormatter
Пространство имен System.Data.Entity.Infrastructure.Interception