C# 클래스 Simple.Migrations.IntegrationTests.NUnitLogger

상속: ILogger
파일 보기 프로젝트 열기: canton7/SimpleMigrations

공개 메소드들

메소드 설명
BeginMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is started

BeginSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is started

EndMigration ( MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration is completed successfully

EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void

Invoked when an individual migration fails with an error

EndSequence ( MigrationData from, MigrationData to ) : void

Invoked when a sequence of migrations is completed successfully

EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void

Invoked when a sequence of migrations fails with an error

Info ( string message ) : void

Invoked when another informative message should be logged

LogSql ( string message ) : void

Invoked when SQL being executed should be logged

NUnitLogger ( string name ) : NUnit.Framework

비공개 메소드들

메소드 설명
WriteError ( string message ) : void
WriteHeader ( string message ) : void
WriteWarning ( string message ) : void

메소드 상세

BeginMigration() 공개 메소드

Invoked when an individual migration is started
public BeginMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration being started
direction MigrationDirection Direction of the migration
리턴 void

BeginSequence() 공개 메소드

Invoked when a sequence of migrations is started
public BeginSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration being migrated from
to SimpleMigrations.MigrationData Migration being migrated to
리턴 void

EndMigration() 공개 메소드

Invoked when an individual migration is completed successfully
public EndMigration ( MigrationData migration, MigrationDirection direction ) : void
migration SimpleMigrations.MigrationData Migration which completed
direction MigrationDirection Direction of the migration
리턴 void

EndMigrationWithError() 공개 메소드

Invoked when an individual migration fails with an error
public EndMigrationWithError ( Exception exception, MigrationData migration, MigrationDirection direction ) : void
exception System.Exception Exception which was encountered
migration SimpleMigrations.MigrationData Migration which failed
direction MigrationDirection Direction of the migration
리턴 void

EndSequence() 공개 메소드

Invoked when a sequence of migrations is completed successfully
public EndSequence ( MigrationData from, MigrationData to ) : void
from SimpleMigrations.MigrationData Migration which was migrated from
to SimpleMigrations.MigrationData Migration which was migrated to
리턴 void

EndSequenceWithError() 공개 메소드

Invoked when a sequence of migrations fails with an error
public EndSequenceWithError ( Exception exception, MigrationData from, MigrationData currentVersion ) : void
exception System.Exception Exception which was encountered
from SimpleMigrations.MigrationData Migration which was migrated from
currentVersion SimpleMigrations.MigrationData Last successful migration which was applied
리턴 void

Info() 공개 메소드

Invoked when another informative message should be logged
public Info ( string message ) : void
message string Message to be logged
리턴 void

LogSql() 공개 메소드

Invoked when SQL being executed should be logged
public LogSql ( string message ) : void
message string SQL to log
리턴 void

NUnitLogger() 공개 메소드

public NUnitLogger ( string name ) : NUnit.Framework
name string
리턴 NUnit.Framework