Webiant Logo Webiant Logo
  1. No results found.

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

AddressBuilder.cs

using System.Data;
using FluentMigrator.Builders.Create.Table;
using Nop.Core.Domain.Common;
using Nop.Core.Domain.Directory;
using Nop.Data.Extensions;

namespace Nop.Data.Mapping.Builders.Common;

/// 
/// Represents a address entity builder
/// 
public partial class AddressBuilder : NopEntityBuilder
{ #region Methods /// /// Apply entity configuration /// /// Create table expression builder public override void MapEntity(CreateTableExpressionBuilder table) { table .WithColumn(nameof(Address.CountryId)).AsInt32().Nullable().ForeignKey(onDelete: Rule.None) .WithColumn(nameof(Address.StateProvinceId)).AsInt32().Nullable().ForeignKey(onDelete: Rule.None); } #endregion }