Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

MigrationVersionInfo.cs

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; }

    #endregion

    #endregion
}