using FluentMigrator.Builders.Create.Table; using Nop.Core.Domain.Stores; using Nop.Data.Extensions; namespace Nop.Data.Mapping.Builders.Stores; /// /// Represents a store mapping entity builder /// public partial class StoreMappingBuilder : NopEntityBuilder { #region Methods /// /// Apply entity configuration /// /// Create table expression builder public override void MapEntity(CreateTableExpressionBuilder table) { table .WithColumn(nameof(StoreMapping.EntityName)).AsString(400).NotNullable() .WithColumn(nameof(StoreMapping.StoreId)).AsInt32().ForeignKey(); } #endregion }