Webiant Logo Webiant Logo
  1. No results found.

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

SettingBuilder.cs

using FluentMigrator.Builders.Create.Table;
using Nop.Core.Domain.Configuration;

namespace Nop.Data.Mapping.Builders.Configuration;

/// 
/// Represents a setting entity builder
/// 
public partial class SettingBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(Setting.Name)).AsString(200).NotNullable()
            .WithColumn(nameof(Setting.Value)).AsString(6000).NotNullable();
    }

    #endregion
}