using FluentMigrator.Builders.Create.Table; using Nop.Core.Domain.Common; namespace Nop.Data.Mapping.Builders.Common; /// /// Represents a generic attribute entity builder /// public partial class GenericAttributeBuilder : NopEntityBuilder { #region Methods /// /// Apply entity configuration /// /// Create table expression builder public override void MapEntity(CreateTableExpressionBuilder table) { table .WithColumn(nameof(GenericAttribute.KeyGroup)).AsString(400).NotNullable() .WithColumn(nameof(GenericAttribute.Key)).AsString(400).NotNullable() .WithColumn(nameof(GenericAttribute.Value)).AsString(int.MaxValue).NotNullable(); } #endregion }