Webiant Logo Webiant Logo
  1. No results found.

    Try your search with a different keyword or use * as a wildcard.

PictureBuilder.cs

using FluentMigrator.Builders.Create.Table;
using Nop.Core.Domain.Media;

namespace Nop.Data.Mapping.Builders.Media;

/// 
/// Represents a picture entity builder
/// 
public partial class PictureBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(Picture.MimeType)).AsString(40).NotNullable()
            .WithColumn(nameof(Picture.SeoFilename)).AsString(300).Nullable();
    }

    #endregion
}