Webiant Logo Webiant Logo
  1. No results found.

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

LanguageBuilder.cs

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

namespace Nop.Data.Mapping.Builders.Localization;

/// 
/// Represents a language entity builder
/// 
public partial class LanguageBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(Language.Name)).AsString(100).NotNullable()
            .WithColumn(nameof(Language.LanguageCulture)).AsString(20).NotNullable()
            .WithColumn(nameof(Language.UniqueSeoCode)).AsString(2).Nullable()
            .WithColumn(nameof(Language.FlagImageFileName)).AsString(50).Nullable();
    }

    #endregion
}