Skip to main content

MigrationBase

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public abstract class MigrationBase : object, IAppTask

Properties

DbFactory

View Source
Declaration
public IDbConnectionFactory DbFactory { get; set; }

Db

View Source
Declaration
public IDbConnection? Db { get; set; }

Transaction

View Source
Declaration
public IDbTransaction? Transaction { get; set; }

Log

View Source
Declaration
public string? Log { get; set; }

StartedAt

View Source
Declaration
public DateTime? StartedAt { get; set; }

CompletedDate

View Source
Declaration
public DateTime? CompletedDate { get; set; }

Error

View Source
Declaration
public Exception? Error { get; set; }

MigrationLog

Add additional logs to capture in Migration table

View Source
Declaration
public StringBuilder MigrationLog { get; set; }

Methods

AfterOpen()

View Source
Declaration
public virtual void AfterOpen()

BeforeCommit()

View Source
Declaration
public virtual void BeforeCommit()

BeforeRollback()

View Source
Declaration
public virtual void BeforeRollback()

Up()

View Source
Declaration
public virtual void Up()

Down()

View Source
Declaration
public virtual void Down()

Implements