Webiant Logo Webiant Logo
  1. No results found.

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

EmailAccountBuilder.cs

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

namespace Nop.Data.Mapping.Builders.Messages;

/// 
/// Represents an email account entity builder
/// 
public partial class EmailAccountBuilder : NopEntityBuilder
{
    #region Methods

    /// 
    /// Apply entity configuration
    /// 
    /// Create table expression builder
    public override void MapEntity(CreateTableExpressionBuilder table)
    {
        table
            .WithColumn(nameof(EmailAccount.DisplayName)).AsString(255).Nullable()
            .WithColumn(nameof(EmailAccount.Email)).AsString(255).NotNullable()
            .WithColumn(nameof(EmailAccount.Host)).AsString(255).NotNullable()
            .WithColumn(nameof(EmailAccount.Username)).AsString(255).NotNullable()
            .WithColumn(nameof(EmailAccount.Password)).AsString(255).NotNullable();
    }

    #endregion
}