using FruitBank.Common;
using FruitBank.Common.Dtos;
using FruitBank.Common.Entities;
using Nop.Data.Mapping;
namespace Nop.Plugin.Misc.FruitBankPlugin.Mapping;
public partial class NameCompatibility : INameCompatibility
{
///
/// Gets table name for mapping with the type
///
public Dictionary TableNames => new Dictionary
{
//{ typeof(OrderDto), "Order"},
{ typeof(Pallet), FruitBankConstClient.PalletDbTableName},
{ typeof(Files), FruitBankConstClient.FilesDbTableName},
{ typeof(Partner), FruitBankConstClient.PartnerDbTableName },
{ typeof(Shipping), FruitBankConstClient.ShippingDbTableName },
{ typeof(ShippingDocument), FruitBankConstClient.ShippingDocumentDbTableName },
{ typeof(ShippingItem), FruitBankConstClient.ShippingItemDbTableName},
{ typeof(ShippingItemPallet), FruitBankConstClient.ShippingItemPalletDbTableName},
{ typeof(OrderItemPallet), FruitBankConstClient.OrderItemPalletDbTableName},
{ typeof(ShippingDocumentToFiles), FruitBankConstClient.ShippingDocumentToFilesDbTableName},
};
///
/// Gets column name for mapping with the entity's property and type
///
public Dictionary<(Type, string), string> ColumnName => new();
}