namespace Nop.Data.Mapping.Catalog
{
public partial class CategoryMap : NopEntityTypeConfiguration<Category>
{
#region Methods
/// <summary>
/// Configures the entity
/// </summary>
/// <param name="builder">The builder to be used to configure the entity</param>
protected override void PostConfigure(EntityTypeBuilder<Category> builder)
{
builder.Property(category => category.MyNewProperty).IsRequired(false);
}
#endregion
}
}
Can I achieve the same code separation with NopEntityBuilder<DOMAINCLASS> ? Is there the equivalent to 'Configure' and 'PostConfigure' pattern with Linq2db?