using FluentMigrator.Runner.VersionTableInfo; using Nop.Core; namespace Nop.Data.Migrations; /// /// The migration version table /// public partial class MigrationVersionInfo : BaseEntity, IVersionTableMetaData { #region Ctor public MigrationVersionInfo() { TableName = nameof(MigrationVersionInfo); ColumnName = nameof(Version); DescriptionColumnName = nameof(Description); AppliedOnColumnName = nameof(AppliedOn); } #endregion #region Properties /// /// Version /// public long Version { get; set; } /// /// Description /// public string Description { get; set; } /// /// Applied on date time /// public DateTime AppliedOn { get; set; } #region IVersionTableMetaData /// /// Provides access to ApplicationContext object. /// /// /// ApplicationContext value is set by FluentMigrator immediately after instantiation of a class /// implementing IVersionTableMetaData and before any of properties of IVersionTableMetaData /// is called. Properties can use ApplicationContext value to implement context-depending logic. /// public object ApplicationContext { get; set; } /// /// Owns schema /// public bool OwnsSchema { get; } = true; /// /// Schema name /// public string SchemaName { get; } = string.Empty; /// /// Table name /// public string TableName { get; } /// /// "Version" column name /// public string ColumnName { get; } /// /// "Description" column name /// public string DescriptionColumnName { get; } /// /// Unique index name /// public string UniqueIndexName { get; } = "UC_Version"; /// /// "Applied on" column name /// public string AppliedOnColumnName { get; } /// /// Create with primary key /// public bool CreateWithPrimaryKey { get; } = false; #endregion #endregion }