25 lines
732 B
C#
25 lines
732 B
C#
using FluentMigrator.Builders.Create.Table;
|
|
using Nop.Core.Domain.ScheduleTasks;
|
|
|
|
namespace Nop.Data.Mapping.Builders.Tasks;
|
|
|
|
/// <summary>
|
|
/// Represents a schedule task entity builder
|
|
/// </summary>
|
|
public partial class ScheduleTaskBuilder : NopEntityBuilder<ScheduleTask>
|
|
{
|
|
#region Methods
|
|
|
|
/// <summary>
|
|
/// Apply entity configuration
|
|
/// </summary>
|
|
/// <param name="table">Create table expression builder</param>
|
|
public override void MapEntity(CreateTableExpressionBuilder table)
|
|
{
|
|
table
|
|
.WithColumn(nameof(ScheduleTask.Name)).AsString(int.MaxValue).NotNullable()
|
|
.WithColumn(nameof(ScheduleTask.Type)).AsString(int.MaxValue).NotNullable();
|
|
}
|
|
|
|
#endregion
|
|
} |