using FluentMigrator.Builders.Create.Table; using Nop.Core.Domain.Vendors; using Nop.Data.Extensions; namespace Nop.Data.Mapping.Builders.Vendors; /// /// Represents a vendor note entity builder /// public partial class VendorNoteBuilder : NopEntityBuilder { #region Methods /// /// Apply entity configuration /// /// Create table expression builder public override void MapEntity(CreateTableExpressionBuilder table) { table .WithColumn(nameof(VendorNote.Note)).AsString(int.MaxValue).NotNullable() .WithColumn(nameof(VendorNote.VendorId)).AsInt32().ForeignKey(); } #endregion }