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