using FluentMigrator.Builders.Create.Table; using Nop.Core.Domain.Customers; using Nop.Core.Domain.News; using Nop.Core.Domain.Stores; using Nop.Data.Extensions; namespace Nop.Data.Mapping.Builders.News; /// /// Represents a news comment entity builder /// public partial class NewsCommentBuilder : NopEntityBuilder { #region Methods /// /// Apply entity configuration /// /// Create table expression builder public override void MapEntity(CreateTableExpressionBuilder table) { table .WithColumn(nameof(NewsComment.CustomerId)).AsInt32().ForeignKey() .WithColumn(nameof(NewsComment.NewsItemId)).AsInt32().ForeignKey() .WithColumn(nameof(NewsComment.StoreId)).AsInt32().ForeignKey(); } #endregion }