24 lines
603 B
C#
24 lines
603 B
C#
using FluentMigrator.Builders.Create.Table;
|
|
using Nop.Core.Domain.Media;
|
|
|
|
namespace Nop.Data.Mapping.Builders.Media;
|
|
|
|
/// <summary>
|
|
/// Represents a video entity builder
|
|
/// </summary>
|
|
public partial class VideoBuilder : NopEntityBuilder<Video>
|
|
{
|
|
#region Methods
|
|
|
|
/// <summary>
|
|
/// Apply entity configuration
|
|
/// </summary>
|
|
/// <param name="table">Create table expression builder</param>
|
|
public override void MapEntity(CreateTableExpressionBuilder table)
|
|
{
|
|
table
|
|
.WithColumn(nameof(Video.VideoUrl)).AsString(1000).NotNullable();
|
|
}
|
|
|
|
#endregion
|
|
} |