24 lines
756 B
C#
24 lines
756 B
C#
using Nop.Data.Mapping;
|
|
using Nop.Plugin.Misc.FruitBankPlugin.Domains.Entities;
|
|
|
|
namespace Nop.Plugin.Misc.FruitBankPlugin.Mapping;
|
|
|
|
public partial class NameCompatibility : INameCompatibility
|
|
{
|
|
/// <summary>
|
|
/// Gets table name for mapping with the type
|
|
/// </summary>
|
|
public Dictionary<Type, string> TableNames => new Dictionary<Type, string>
|
|
{
|
|
{ typeof(Partner), "fbPartner" },
|
|
{ typeof(Shipping), "fbShipping" },
|
|
{ typeof(ShippingItem), "fbShippingItem" },
|
|
{ typeof(ShippingDocument), "fbShippingDocument" },
|
|
};
|
|
|
|
|
|
/// <summary>
|
|
/// Gets column name for mapping with the entity's property and type
|
|
/// </summary>
|
|
public Dictionary<(Type, string), string> ColumnName => new();
|
|
} |