26 lines
796 B
C#
26 lines
796 B
C#
using FluentMigrator.Builders.Create.Table;
|
|
using Nop.Core.Domain.Messages;
|
|
|
|
namespace Nop.Data.Mapping.Builders.Messages;
|
|
|
|
/// <summary>
|
|
/// Represents a campaign entity builder
|
|
/// </summary>
|
|
public partial class CampaignBuilder : NopEntityBuilder<Campaign>
|
|
{
|
|
#region Methods
|
|
|
|
/// <summary>
|
|
/// Apply entity configuration
|
|
/// </summary>
|
|
/// <param name="table">Create table expression builder</param>
|
|
public override void MapEntity(CreateTableExpressionBuilder table)
|
|
{
|
|
table
|
|
.WithColumn(nameof(Campaign.Name)).AsString(int.MaxValue).NotNullable()
|
|
.WithColumn(nameof(Campaign.Subject)).AsString(int.MaxValue).NotNullable()
|
|
.WithColumn(nameof(Campaign.Body)).AsString(int.MaxValue).NotNullable();
|
|
}
|
|
|
|
#endregion
|
|
} |