Webiant Logo Webiant Logo
  1. No results found.

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

UrlRecordBuilder.cs

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

namespace Nop.Data.Mapping.Builders.Seo;

/// 
/// Represents a url record entity builder
/// 
public partial class UrlRecordBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(UrlRecord.EntityName)).AsString(400).NotNullable()
            .WithColumn(nameof(UrlRecord.Slug)).AsString(400).NotNullable();
    }

    #endregion
}