Webiant Logo Webiant Logo
  1. No results found.

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

PermissionRecordBuilder.cs

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

namespace Nop.Data.Mapping.Builders.Security;

/// 
/// Represents a permission record entity builder
/// 
public partial class PermissionRecordBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(PermissionRecord.Name)).AsString(int.MaxValue).NotNullable()
            .WithColumn(nameof(PermissionRecord.SystemName)).AsString(255).NotNullable()
            .WithColumn(nameof(PermissionRecord.Category)).AsString(255).NotNullable();
    }

    #endregion
}